ml-in-barcelona / jsoo-react

js_of_ocaml bindings for ReactJS. Based on ReasonReact.
https://ml-in-barcelona.github.io/jsoo-react
MIT License
138 stars 19 forks source link

use with ml syntax #52

Closed joprice closed 3 years ago

joprice commented 3 years ago

Is it possible to use the ppx with ocaml syntax?

jchavarri commented 3 years ago

Yes but it's quite verbose. Check following file:

https://github.com/jchavarri/jsoo-react/blob/a013cf24dc998faf7ad8557d2a9bae78fd92be3a/example/src/HelloWorldOCaml.ml#L1-L3

jchavarri commented 2 years ago

@joprice you can check RFC #67 to see what we're planning to work on in order to improve OCaml syntax support. Feel free to add any feedback to that PR.