-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
[Feature request] JSX version 4 #327
Comments
Is there anything we can help with that? I don't have knowledge creating PPX but if there is some guide of manual work that is needed I can help with. |
There are a few doubts from my side, help resolving those might make the feature available very soon (depending on the answers obviously!).
|
I posted an issue for the ReScript team about some technical issue with the generation of props, If anyone have a good idea, tune in. Let's see how this goes, but meanwhile would love to know some opinions on the above. The post is https://forum.rescript-lang.org/t/ann-new-nightly-release-of-styled-ppx-working-with-jsx4/4331/2, |
I published a new alpha version that has dynamic components broken, the rest should work as expected.
|
Pushed a new version with most of the fixes, should be a little stable now.
A few things to take into account:
|
I merged the PR with JSX4 support (v0.35), it's currently in beta and append here any issue you find with it. |
Thanks for doing this. Unfortunately, I still get the exact same compile error when setting jsx to version 4 using version 0.35 of the ppx. It's possible that I am missing something basic. EDITED: removed superfluous comments |
Ok, miss-typed the version and forgot to publish it. It's 0.36. Can you try updating? |
Yes, that did it. Outstanding! |
Hello @davesnx! First let me thank you for being so quick and prestative! I don't know if I'm doing something wrong, but when I do: module CardBody = %styled.div(`
display: flex;
justify-content: space-between;
`)
@react.component
let make = () => {
<CardBody className="card-body">
{"... many children here"}
</CardBody>
} Using the option at {"jsx": {"version": 4, "mode": "classic"}} It should render the That is not what is happening: I'm using the |
Right, it seems like Thanks for trying it <3 |
Heeey, any news? |
Pushed 0.38.1 fixing the className issue. Thanks for the testing! |
The missing piece on JSX4 is the new JSX transformation. |
Hey @ashton @whitchapman Do you have any OSS repository with ReScript that is using v11? |
Hey, I don't think v11 is out yet, but as soon as it gets released I'll update my projects with it |
Finishing the v11 support on #415 JSX4 should work nice |
I use this ppx with Rescript, and the error message I get when attempting to use version 4 is:
Thanks!
The text was updated successfully, but these errors were encountered: