Skip to content

Commit 7c26585

Browse files
committed
More react snippets
1 parent 8020034 commit 7c26585

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

UltiSnips/javascript.snippets

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,3 +191,18 @@ ${1:`!v expand('%:t:r')`.}propTypes = {
191191
};
192192
endsnippet
193193

194+
snippet set "Set State"
195+
this.setState({
196+
${1}: ${2}
197+
});
198+
endsnippet
199+
200+
snippet props "Get Property" i
201+
this.props.${1}
202+
endsnippet
203+
204+
snippet state "Get State" i
205+
this.state.${1}
206+
endsnippet
207+
208+

0 commit comments

Comments
 (0)