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.

3m read timeFrom chadmuro.medium.com
Post cover image
Table of contents
1. Cleaning up a useEffect Hook2. When to Use useReducer3. What is Memoization?
1 Comment

Sort: