Better HN
topnewbestaskshowjobs
Log inSign up

wwewe

3 karma · joined Feb 14, 2020 (6y ago) · 2 submissions

Submissions

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

The approach I've been taking is to use ReasonML to model the domain of my application as well as high level components. ReasonML code remains unaware of the styling of the "lower-level" components for the most part, which I write in typescript with styled-components or emotion.