Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
zwily
on April 18, 2020
|
parent
|
context
|
favorite
| on:
Crank.js – Write JSX-driven components with functi...
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.
emteycz
on April 18, 2020
|
next
[–]
You are right. I tried it here, for others:
https://codesandbox.io/s/crazy-bush-cg2i0?file=/src/App.js
nightski
on April 18, 2020
|
prev
[–]
Sure that is the way it works now. Is that a guarantee of React though or implicit behavior that could change in the future?
boubiyeah
on April 18, 2020
|
parent
[–]
It's just an implementation detail.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: