You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!doctype html><html><head><title>react-boilerplate</title><scripttype="module">import{createElement}from"react";import{createRoot}from"react-dom/client";createRoot(document.getElementById("root")).render(createElement('h1',null,'hello world'));</script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><divid="root"></div></body></html>
Code above will work well if we run vite build. But it would be better if we support jsx in <script> tag. Just like createRoot(document.getElementById("root")).render(<h1>hello world</h1>);
Description
Code above will work well if we run
vite build
. But it would be better if we support jsx in<script>
tag. Just likecreateRoot(document.getElementById("root")).render(<h1>hello world</h1>);
Suggested solution
Support jsx in
<script>
tag.Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: