Skip to content
public-library›Rules›React›Follow the Rules of Hooks

Follow the Rules of Hooks

HIGH#react#hooks Sign in to star Follow the Rules of Hooks, 0 stars

Sign in to star rules

Star this rule if you find it useful.

Call Hooks only at the top level of a function component or custom Hook, in the same order on every render, and before any early return.

In the full rule