Hooks are an innovation in React that allows you to use state and other React features without writing classes. Hooks are normal JavaScript functions, but there are two rules to follow. To apply them automatically, we’ve created a plugin for the linter: Only use hooks at the top level. Do not call hooks inside loops, […]



