React (software): Difference between revisions

Content deleted Content added
Drthey (talk | contribs)
Updated content to correctly reflect what React is.
Tags: Visual edit Mobile edit Mobile web edit
Tags: Reverted Visual edit
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).