fuafa / not-a-hub

blog, IP has been blocked by ***, effort needed to visit
https://www.fahub.info
2 stars 0 forks source link

State updates from the useState() and useReducer() Hooks don't support the second callback argument #12

Closed fuafa closed 5 years ago

fuafa commented 5 years ago

Warning: State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect(). https://github.com/facebook/react/issues/14174

fuafa commented 5 years ago

closed 04428e1d5554fe69799b187e0c1a80b171725f85