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

Complete lowercase JSX labels from the domProps type #883

Merged
merged 2 commits into from
Jan 8, 2024

Conversation

zth
Copy link
Collaborator

@zth zth commented Jan 6, 2024

Change completion of DOM props of lowercase elements to try to look up ReactDOM.domProps first, before falling back to the current method of completing from a pre-defined list of DOM props (that was there because of JSXv3).

This is an adaption to JSXv4, and also a preparation for our upcoming generic JSX transform where we'll want to be able to swap out domProps to something custom for the generic transform.

@zth zth requested a review from cristianoc January 6, 2024 18:18
Copy link
Collaborator

@cristianoc cristianoc left a comment

Choose a reason for hiding this comment

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

nice touch

@zth zth force-pushed the complete-lowercase-jsx-labels-from-domprops branch from ed89d5e to 7220e9d Compare January 8, 2024 15:58
@zth zth merged commit 4c71dab into master Jan 8, 2024
3 checks passed
@zth zth deleted the complete-lowercase-jsx-labels-from-domprops branch January 8, 2024 15:59
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