HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by mchaver | Hacker News Reader
Parent
Full thread
mchaver
·
Is JSX from ReasonReact usable directly in OCaml/BuckleScript?
View on HN
glennsl
·
Unfortunately not. It's an inseparable part of the Reason syntax. You can however use either the desugared form:
([@JSX] div(~foo=bar, ~children=[child1, child2], ()));
Or a preprocessor that'll give you a JSX-like syntax, but without the type checking:
https://github.com/cxa/ppx_bsx
Reply on news.ycombinator.com