Skip to content

Jsx adaptions #1

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

Closed
wants to merge 2 commits into from
Closed

Jsx adaptions #1

wants to merge 2 commits into from

Conversation

ryyppy
Copy link
Member

@ryyppy ryyppy commented Jan 13, 2021

No description provided.

@@ -0,0 +1,30 @@
@@warning("-27")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is this coming from? I don't think the ppx adds -27 so I'm surprised to see it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caused by this line

let \"Foo$App" = (\"Props": {.}) => make()

"Props" is not being used here

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added the -27 attribute manually though

@@ -25,16 +25,16 @@ external cloneElement: (element, 'props) => element = "cloneElement"
external createElementVariadic: (component<'props>, 'props, array<element>) => element =
"createElement"

@module("react") @deprecated("Please use JSX syntax directly.")
@module("react/jsx-runtime")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we still want the @deprecated here. We want people to use JSX syntax or createElement. If we need to create a directly usable api we can do that outside of this work.

@cknitt
Copy link
Member

cknitt commented Sep 25, 2022

@ryyppy I guess this is obsolete and can be closed?

@cknitt
Copy link
Member

cknitt commented Sep 28, 2022

@ryyppy @mattdamon108 Is there anything still relevant in this PR or can it be closed?

@mununki
Copy link
Member

mununki commented Sep 28, 2022

I think JSX v4 has already a transformation using _jsx with bindings.

@cknitt
Copy link
Member

cknitt commented Sep 29, 2022

Ok, so I am closing this one now.

@cknitt cknitt closed this Sep 29, 2022
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.

4 participants