useRef(initState)
- setting a reference to a element to access it later for read operations.useState(currentState, setStateFunction)
- setting states and updating states.ReactDOM.createPortal(content, elementToPortalTo)
- portaling a child/element to another element via portal's ID.<React.Fragment />
- placeholder to avoid div soupuseEffect
- Runs after every render, and will be triggered by the dependencies array. Clean up runs before useEffect.useReducer
- Managing complex states with initial state and dispatching actions to modify states.useContext
- Easy to pass states down to nested components without props chaining.forwardRef
- Turning a component into a ref() to call its functions from parent.useMemo
- Memoize a object only ru-run based on dependencies.
firebase
- Dynamic JSON database.
react-use
- Common premade hooks. (https://github.com/streamich/react-use)firebase-hooks
- A set of reusable React Hooks for Firebase. (https://github.com/CSFrequency/react-firebase-hooks/)
use-hooks
- Recipe of common hooks. (https://usehooks.com/)