Some Useful React Hooks, Its Rules and Features

Source : devsoyoung.github.io
How Hooks Works
useState for handle a list
setCards for store the new value
This useEffect will run the function only once because there are zero dependencies
This useEffect will run each time when the timeout variable greater than zero

References

--

--

Computer Geek's from Jember, East Java, Indonesia

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store