-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Proposal: jsx-no-mixed-title #3839
Comments
tbh this seems like just a bug in React to me - i'm not sure why they can't just omit the comments for |
I agree, but the React team knows about it and doesn't want to fix it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This issue describes a common problem that has an easy but non-obvious solution.
<title>
as literal text.Putting (1) and (2) together means that this normal-seeming JSX is broken:
react-dom emits a warning:
I propose a rule that allows static text or an interpolation, but not both as the child of
<title>
.The text was updated successfully, but these errors were encountered: