0

I'm importing these two components, but this error appears, the page keeps loading normally, but I don't know how to solve this.

<DesktopNav />
<MobileNav />

I already did with

<React.Fragment>
<DesktopNav />
<MobileNav />
</React.Fragment>

Or

<div>
<DesktopNav />
<MobileNav />
</div>

The error 'JSX expressions must have one parent element.' no longer appears, but when I load the page it shows an error Unexpected token `>`.

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.