|
|
|
|
|
by mynameisvlad
1269 days ago
|
|
Isn’t it also explicitly discouraged with a warning because of how bad it could be? The React docs are very clear on this: > The render() function should be pure, meaning that it does not modify component state, it returns the same result each time it’s invoked, and it does not directly interact with the browser. https://reactjs.org/docs/react-component.html#render |
|
https://beta.reactjs.org/learn/you-might-not-need-an-effect#...