Coding in Bucklescript for ReasonReact


#1

I am new to Reason and ReasonReact. I have also only tinkered with OCaml / Bucklescript. I like its syntax.

Is it reasonable to develop ReasonReact applications using Bucklescript directly? If so, can you give me an example of how to translate an example App.re file into Bucklescript? I am having trouble with the ‘…component’ feature, for example.


#2

You can always use https://github.com/reasonml/reason-tools to translate syntax. For JSX, it gets a bit trickier, but you can use https://github.com/cxa/ppx_bsx


#3

I’ve been using ppx_bsx, but I’m concerned that it won’t be maintained. Why isn’t it an official ReasonML project?


#4

@shinzui fortunately at least, there shouldn’t be much to maintain about it (though there needs support for fragments and all).

The problem is that we our don’t officially use it. Maybe someone else can take over if cxa doesn’t, in the future.