Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use ocaml syntax with reason-react? #125

Closed
doofin opened this issue Nov 15, 2017 · 3 comments
Closed

How to use ocaml syntax with reason-react? #125

doofin opened this issue Nov 15, 2017 · 3 comments

Comments

@doofin
Copy link

doofin commented Nov 15, 2017

It seems that bsb only provides build-in react support via reason syntax

@jordwalke
Copy link
Member

I think we might need to do a little bit of refactoring to make it so that we you end up with a usable API without relying on any of our built-in ppx plugins. We're definitely open to it.

@chenglou
Copy link
Member

@doofin you can't have JSX since that's a Reason-specific syntax; however, you can use the desugared form, or this PPX: https://github.com/cxa/ppx_bsx

The rest of ReasonReact works as expected in vanilla OCaml.

Closing! Ping me if you got further questions =)

@shinzui
Copy link

shinzui commented Feb 8, 2018

Should ppx_bsx be part of the reason-react project? It does not look like it's maintained.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants