Re:ReasonML – React as first intended
by burger_moon on Thursday May 24, 2018 @12:02PM
(#17145287)
>We've been converting a large JS react app to Reason
Is the process like say converting to using Flow where you can just add it in where you want and the application still runs fine, or by convert do you mean write a whole new application and when it's complete then launch?
Similar to flow. JS interop is great, so you can literally change bit by bit and refactor from the inside out.
We've been converting a large JS react app to Reason, and strongly typed props solves a lot of problems. Passing props down multiple children is no longer a burden, and you'll never have that "prop spreading madness". For anything that reaaally requires some sort of global state, you can use the new react context api.
The only danger of writing in reasonml is spoiling javascript for yourself