14 Hooks

Hooks

Objective

  1. State (opens in a new tab): add a state variable to your component.
  2. Effect (opens in a new tab): synchronize a component with an external system.
  3. Reference (opens in a new tab): reference a value that is not needed for rendering.
  4. Deferred value (opens in a new tab): defer updating a part of the user interface.
  5. Callback (opens in a new tab): cache a function definition between re-renders
  6. Memo (opens in a new tab): cache the result of a calculation between re-renders
  7. Transition (opens in a new tab): update the state without blocking the user interface.
  8. Optimistic (opens in a new tab): optimistically update the state of a component.
  9. Context (opens in a new tab): read and subscribe to context from your component.
  10. Reducer (opens in a new tab): add a reducer to your component.
  11. Imperative handle (opens in a new tab): customize the instance value that is exposed to parent components when using a reference.
  12. Layout effect (opens in a new tab): synchronize a component with an external system after all document mutations.
  13. Insertion effect (opens in a new tab): insert elements into the document before any layout effects fire.
  14. Form status (opens in a new tab): gives you status information of the last form submission.
  15. Action state (opens in a new tab): update state based on the result of a form action.
  16. Id (opens in a new tab): generate unique identifiers for accessibility attributes.
  17. External store (opens in a new tab): subscribe to an external store.
  18. Debug value (opens in a new tab): display a label for custom hooks in the developer tools.
  19. Use (opens in a new tab): read the value of a resource like a promise or context.
  20. Query (opens in a new tab): a powerful asynchronous state manager.
  21. Hooks (opens in a new tab): a collection of modern, server-safe hooks.
  22. Zustand (opens in a new tab): a small, fast, and scalable state management solution.

Resources