Re:Crank.js – Write JSX-driven components with functions, pr...
by zwily on Saturday April 18, 2020 @09:10AM
(#22907460)
The instance of the class isn’t destroyed every render... you can keep other state on it too that is persisted between renders, changing it just won’t trigger a render.
Re:Crank.js – Write JSX-driven components with functions, pr...
by TomMarius on Saturday April 18, 2020 @10:01AM
(#22907774)
You are right. I tried it here, for others: https://codesandbox.io/s/crazy-bush-cg2i0?file=/src/App.js
More here: https://reactjs.org/blog/2015/12/18/react-components-element...