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

react/jsx-key Does not report errors when child is optional #3481

Closed
tylercraft opened this issue Nov 4, 2022 · 0 comments · Fixed by #3490
Closed

react/jsx-key Does not report errors when child is optional #3481

tylercraft opened this issue Nov 4, 2022 · 0 comments · Fixed by #3490

Comments

@tylercraft
Copy link

This does not warn on this use case:

data.map(x => somecheck && <Hello>{x}</Hello>);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants