Archive

#hooks

2 notes match these filters

  • 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…