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

Validate Dom nesting warning in console #174

Closed
gmanninglive opened this issue Jun 25, 2022 · 0 comments · Fixed by #175
Closed

Validate Dom nesting warning in console #174

gmanninglive opened this issue Jun 25, 2022 · 0 comments · Fixed by #175

Comments

@gmanninglive
Copy link
Contributor

This warning appears in dev on the index route

Screenshot 2022-06-25 at 10 26 18

It's due to p tags not being wrapped in {} which means another p tag is appended to the first p tag

<div className="mx-auto max-w-full w-[880px] text-center px-4 my-10">
  <p className="text-lg mb-2 text-gray-600 md:!text-2xl">
    Rust-based platform for the Web
  </p>
</div>

vs

<div className="mx-auto max-w-full w-[880px] text-center px-4 my-10">
  {<p className="text-lg mb-2 text-gray-600 md:!text-2xl">
    Rust-based platform for the Web
  </p>}
</div>

I'll be opening a PR with a solution shortly, Hope that's okay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant