Skip to content

Commit 0d01825

Browse files
committed
Add useFormStatus hook snippet and update README
1 parent 250ef09 commit 0d01825

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ React Hooks Snippets is a [Visual Studio Code](https://code.visualstudio.com/) e
4040
| `uth` | `useTransition` |
4141
| `udvh` | `useDeferredValue` |
4242

43+
### React Dom Hooks
44+
| Prefix | Snippet |
45+
| ------------- | ------------- |
46+
| `ufsh` | `useFormStatus` |
47+
4348
### Other Hooks
4449
| Prefix | Snippet |
4550
| ------------- | ------------- |

snippets/snippets.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,13 @@
101101
],
102102
"description": "React useDeferredValue() hook"
103103
},
104+
"useFormStatus": {
105+
"prefix": "ufsh",
106+
"body": [
107+
"const { ${1:pending}, ${2:data}, ${3:method}, ${4:action} } = useFormStatus();$0"
108+
],
109+
"description": "React Dom useFormStatus() hook"
110+
},
104111
"useDebugValue": {
105112
"prefix": "udbvh",
106113
"body": [

0 commit comments

Comments
 (0)