3 ms·
This feels like saying Haskell doesn't have pure functions because they don't account for cosmic ray bit flips.
by Kaze404 4y ago
This feels like saying Haskell doesn't have pure functions because they don't account for cosmic ray bit flips.
- ridiculous_fish 4y agoNo, this implicit state is a very practical concern in React. For example see this highly upvoted SO post. Text fields lose focus on re-render; the solution is to use a unique key so that the view gets re-used and the implicit state is preserved. https://stackoverflow.com/questions/22573494/react-js-input-losing-focus-when-rerendering https://stackoverflow.com/questions/22573494/react-js-input-...