React Hooks are JavaScript functions with two special rules: Only Call Hooks at the Top Level — Hooks should not be called inside loops, conditions, or nested functions. Cleaning up a useEffect hook is the same functionality as calling componentWillUnmount in a class-based component. The useReducer Hook is an alternative to useState.
1 Comment
Sort: