Skip to content

Adjacent JSX elements must be wrapped error #4418

@davidhariri

Description

@davidhariri

I don't see anything wrong with the first two lines of this, but the JSX transformer seems to... When I remove the first two <div>'s everything works fine. Can someone explain to me what's going on?

<div className="screen-width header__image"></div>
<div className="screen-width header__tint"></div>
<div className="page-width header__content">
    <ul className="navigation header__content__navigation">
        <li className="navigation__link header__content__navigation__link" onClick={this.route.bind(null, '/')}>New</li>
        <li className={`navigation__link${hidden} header__content__navigation__link`}>Inbox</li>
    </ul>
    <button className={`button__text${signupHidden} header__content__button--sign-up`}>Sign Up</button>
    <div className="header__content__user">
        <HeaderAvatar user={this.props.user} />
        <CreateButton user={this.props.user} />
    </div>
</div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions