Skip to content

Commit c4726be

Browse files
authored
Update Readme: remove "pure" from pure function
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"
1 parent cc5d462 commit c4726be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ I like to have a simpler mental model that I can ground myself in.
1010

1111
## Transformation
1212

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.
1414

1515
```js
1616
function NameBox(name) {

0 commit comments

Comments
 (0)