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
@ArnaudBarre I'm actually using ReScript which produces compiled JSX.
If my component only returns a primitive string, there is no react/jsx-runtime involved.
That is why I brought it up.
Describe the bug
When returning a plain string from a function component, the fast refresh is not added.
While I believe React does consider this as a valid component.
Reproduction
https://stackblitz.com/edit/vitejs-vite-wzbtgaex?file=src%2FFoo.js
Steps to reproduce
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: