JSX elements included in closing tag

Asked

Viewed 25 times

0

When creating the div with the SERVICES name displays the following error:

Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?

<div id="start">
    <div className="head-logo">
        <img src={logoBlack} alt="FlowsLabs Logo" />
    </div>
    <h1>Nós desenvolvemos soluções inteligentes e eficientes. <br></br>
     Para todos os tipos de negócios.</h1>
    <div className="container">
    </div>
    <p>&darr;</p>
</div>
<div className="services">
    <h1>Teste</h1>
</div>

1 answer

0

Error says that all elements must be within a tag only.

Your div with the className="services" is out of div with the id="start". Put it inside the div start.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.