3 ms·
The runtime is not that big with 0.19 in my experience. I rewrote a (P)react component that was 5kb and Elm came out to be 6.8kb. If you're comparing it to Rea
by sdnguyen90 8y ago
The runtime is not that big with 0.19 in my experience. I rewrote a (P)react component that was 5kb and Elm came out to be 6.8kb.
If you're comparing it to ReasonReact, you still have the React/ReactDOM Javascript dependency which is still ~30kb gzipped
- bjz_ 8y agoKind of curious if anyone's played around with using incr_dom with Reason: - https://github.com/janestreet/incr_dom/ https://github.com/janestreet/incr_dom/ - https://www.youtube.com/watch?v=h_e5pPKI0K4 https://www.youtube.com/watch?v=h_e5pPKI0K4 Seems like it might be tied to js_of_ocaml though...
- PascalW 8y agoReact is unfortunately quite big indeed. However you can actually replace React in ReasonReact with an API compatible alternative via Webpack. I tried this a few weeks back and have to say that it only worked with Inferno.js though, not Preact (lack of React 16 feature support) nor Nerv.js.