You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
https://www.reddit.com/r/reactjs/comments/abj7hn/uis_are_not_pure_functions_of_the_model_reactjs/ed1h20x/
"To elaborate a bit, React components aren’t always “pure” in strict FP sense of the word. They’re also not always functions (although we’re adding a stateful function API as a preferred alternative to classes soon). Support for local state and side effects is absolutely a core feature of React components and not something we avoid for “purity"
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ I like to have a simpler mental model that I can ground myself in.
10
10
11
11
## Transformation
12
12
13
-
The core premise for React is that UIs are simply a projection of data into a different form of data. The same input gives the same output. A simple pure function.
13
+
The core premise for React is that UIs are simply a projection of data into a different form of data. The same input gives the same output. A simple function.
0 commit comments