News for hackers. Stuff that matters.
Re:Reason React 0.8 by bgorman on Wednesday May 13, 2020 @06:08PM (#23172396)
ReasonML is awesome! I personally preferred the "reducer" state modeling mechanism from ReasonReact 0.6, but you can still use it as a library with https://github.com/bloodyowl/reason-react-update
Re:Reason React 0.8 by wwewe on Wednesday May 13, 2020 @06:47PM (#23172741)
I ended up just using redux with react-redux. I just wrote my own bindings (does not cover the entire api surface but the essentials): https://gist.github.com/melbourne2991/b3093187505f2ee9e517bb...

You get a lot of optimizations for free with react-redux. Given reason-react now supports hooks you can also just use `useReducer` but this lacks some optimizations.