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

Add new React function component jsx ppx #3452

Merged
merged 4 commits into from
Mar 28, 2019

Conversation

rickyvetter
Copy link
Contributor

See reasonml/reason-react#351 for corresponding React changes.

This (re)introduces jsx version 3 and allows people to default their entire project to the new version through a ppx. When using version 3, jsx compiles into something very similar to JS - React.createElement(component, props, ...children). This gets us a 0-cost, 0-runtime binding for React.

Tested in a local repo with all combinations of (None, Some 2, Some 3) in bsconfig.json and in bs.config attribute.

@bobzhang bobzhang merged commit cf06fd3 into rescript-lang:master Mar 28, 2019
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

Successfully merging this pull request may close these issues.

2 participants