React (software): Difference between revisions

Content deleted Content added
Tags: Reverted Visual edit
m Reverted edits by 147.148.31.102 (talk) (HG) (3.4.12)
Line 132:
 
==== Rules of hooks ====
There are rules of hooks<ref>{{Cite web|url=https://reactjs.org/docs/hooks-rules.html|title=Rules of Hooks – React|website=reactjs.org|language=en|access-date=2020-01-24}}</ref> which describe the characteristic code pattern that hooks rely on. It is the modern [https://reactway.co.uk way] to handle state with React.
 
# Hooks should only be called at the top level (not inside loops or if statements).