Hacker News new | ask | show | jobs
by hu3 422 days ago
You might want to look at something like morph Dom to keep input focus when you have to re-render the form, for example.
1 comments

Since the user decides what happens when the state gets updated its up to them to address that. For me, I usually avoid re-renders when possible, I rather update the property associated with the state.

Have you faced any scenarios where that's needed? I'm curious.