DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

taesik
taesik

Posted on

to trigger setState

const [state,setState] = useState(initialValue) ;
Enter fullscreen mode Exit fullscreen mode

I prefer to use as this form useState. as for setState, setState need trigger such useEffect.

Top comments (0)

Create an Account! The only reason people scroll to the bottom... Β 
is because they want to read more.

Create an account to bookmark, comment, and react to articles that interest you.