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

jsx title tag should transpile to string #2478

Open
dbo opened this issue Jan 23, 2023 · 0 comments
Open

jsx title tag should transpile to string #2478

dbo opened this issue Jan 23, 2023 · 0 comments

Comments

@dbo
Copy link
Contributor

dbo commented Jan 23, 2023

const title = "foo";
<title>{title}</title>

currently compiles to

const title = "foo";
React.createElement(title, null, title);

but should rather compile to

const title = "foo";
React.createElement("title", null, title);
@dbo dbo changed the title Lower-cased jsx tags should transpile to string jsx title tag should transpile to string Jan 23, 2023
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

1 participant