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
react-in-jsx-scope does not understand fragments #1758
Comments
The fix for this appears to be extremely simple. |
@dantman that sounds great! However, we'll also want to make sure this change only applies after whichever React version added fragment support. |
seems like 16.2.0 -version introduced improved support for fragments. |
If you use
<></>
fragment syntax thereact-in-jsx-scope
rule will not declare React as in scope and the no-unused-vars will fail on the React import.However React is required for fragment syntax as well as normal element syntax.
The text was updated successfully, but these errors were encountered: