Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm a React dev and have been mentoring a junior. React's hooks, when and why they run, is very unintiuative for them. Skill issue is part of it, but React's immutable prop diffing forces the use of hooks and understanding how the framework uses them. Moving to a re-render model which always rebuilds the vdom tree allows callbacks, state to be defined outside of the render method without framework abstractions wrapping them. I'm not familiar with what Remix is doing but it looks a lot like Mithril.js, and working with Mithril is really enjoyable after working with React for as long as I have.


Of course teaching FP ideas to traditional-javascript devs is going to be tricky, but that’s less a React complexity problem as it is a familiarity problem.

If everyone came from a purescript/fp background the story would be different.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: