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

Error in JSX when using self closing div tag #1308

Open
jcubic opened this issue May 9, 2024 · 0 comments
Open

Error in JSX when using self closing div tag #1308

jcubic opened this issue May 9, 2024 · 0 comments

Comments

@jcubic
Copy link

jcubic commented May 9, 2024

Just got another bug with JSX:

function App() {
    return (
        <div>
        <div/>
        </div>
    );
}

The outer tags are white and the inner div is not indented.

Przechwycenie obrazu ekranu_2024-05-09_19-38-18

JSX is not HTML so all tags can be self-closing.

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

No branches or pull requests

1 participant