Skip to content

Hooks

Rules of Hooks

Built-in Hooks

  • useBuilt: build and return the concrete representation of the provided node.
  • useCallback: cache a function definition across re-renders.
  • useComputed: keep computed state across component re-renders.
  • useContext: access context in scope of the component.
  • useEffect: synchronise a component with an external system.
  • useMemo: cache a computation between re-renders.
  • useState: keep mutable state across component re-renders.

Custom Hooks

Released under the MIT License.