Skip to content

Commit d8c2a7d

Browse files
committed
fix(react-cheat-sheet): added new react 18 hooks
1 parent cf5398b commit d8c2a7d

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

data/react-cheat-sheet.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,14 @@
141141
{
142142
"definition": "যে হুক দ্বারা DOM measurements(scroll event, viewport height/width) করা যায় এবং synchronously re-render হতে থাকে state আপডেটের পর",
143143
"code": "useLayoutEffect(() => {}, [dependencies])"
144+
},
145+
{
146+
"definition": "যে হুক দ্বারা ইউনিক আইডি জেনারেট করা হয়",
147+
"code": "const id = useId()"
148+
},
149+
{
150+
"definition": "যে হুক দ্বারা কোন স্টেটের আপডেট মনিটর করা হয় এবং সেই স্টেটের আপডেট হওয়া পর্যন্ত পেন্ডিং স্টেট শো করে।",
151+
"code": "const [isPending, startTransition] = useTransition()"
144152
}
145153
]
146154
},

0 commit comments

Comments
 (0)