Archive

#hooks

3 notes match these filters

  • How React Works · Part 098 min read

    Hooks: Why Order Matters

    Hooks have no names or keys; React stores them as an ordered list on each component's fiber and matches them by call position, which is the whole reason the Rules of Hooks exist.

  • React Internals · Part 1012 min read

    Hooks on Mount

    A function component's first render runs inside renderWithHooks. It points the global hooks dispatcher (ReactSharedInternals.H) at the mount implementations, then calls your…

  • React Internals · Part 1110 min read

    Hooks on Update

    On a re-render, renderWithHooks installs HooksDispatcherOnUpdate. Each hook call then clones the matching node from the committed (current) fiber's hook list onto the…