You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> The React Hooks API is currently _experimental_. See https://reactjs.org/hooks for more information.
3
+
> The React Hooks API is available beginning with React version 16.8. See https://reactjs.org/hooks for more information.
4
4
5
5
## Features
6
6
7
-
This extension contributes a handy snippet for the [useState hook](https://reactjs.org/docs/hooks-reference.html#usestate).
7
+
This extension includes a handy snippet for the [useState hook](https://reactjs.org/docs/hooks-reference.html#usestate).
8
8
9
9

10
10
11
-
The second placeholder value is automatically capitalized on <kbd>Tab</kbd>.
11
+
\*The second placeholder value is automatically capitalized on <kbd>Tab</kbd>.
12
12
13
13
There are also a few variations for common initial state values:
14
14
@@ -21,14 +21,11 @@ There are also a few variations for common initial state values:
21
21
22
22
## Requirements
23
23
24
-
Visual Studio Code 1.25.1 or higher.
24
+
- Visual Studio Code 1.25.1 or higher.
25
+
- React 16.8.0 or higher.
25
26
26
27
## "What about the other hooks?"
27
28
28
-
TBD. After all, Hooks are not officially released yet.
29
-
30
-
## "But I prefer `let` over `const`."
31
-
32
-
It's easy enough to [create your own snippet](https://code.visualstudio.com/docs/editor/userdefinedsnippets#_creating-your-own-snippets) in VS Code! You can use [this gist](https://gist.github.com/antmdvs/63903d7f98f8d82d0c6463abebb77cd7) as a starting point.
29
+
I'll be carefully evaluating the usefulness of snippets for the remaining hooks. Please use GitHub to file/upvote requests for other hooks.
0 commit comments