3 ms·
Not the parent, but here's one that I hit recently: I hoisted the state of an input box up a few layers because other parts of my app are affected by the curre
by stickfigure 7y ago
Not the parent, but here's one that I hit recently:
I hoisted the state of an input box up a few layers because other parts of my app are affected by the current typed content. Since I'd been careless passing closures in as props to expensive components, they were getting re-rendered on every keystroke. It was noticeably sluggish.
- acemarke 7y agoJust out of curiosity, is that in production mode, or just in development?
- stickfigure 7y agoIt affected production enough to get some user complaints.