4 ms·
They're available to vanilla OCaml as well (given the constraints listed in the post). Add `"bsc-flags": ["-bs-super-errors"]` in your `bsconfig.json` to turn i
by chenglou 9y ago
They're available to vanilla OCaml as well (given the constraints listed in the post). Add `"bsc-flags": ["-bs-super-errors"]` in your `bsconfig.json` to turn it on. If you use BuckleScript, that is.
We'll try to make it into a proper compiler plugin, but it's not trivial right now
- mchaver 9y agoIs JSX from ReasonReact usable directly in OCaml/BuckleScript?
- glennsl 9y agoUnfortunately 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 https://github.com/cxa/ppx_bsx