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

Closed
jcubic opened this issue May 9, 2024 · 1 comment
Closed

Error in JSX when using self closing div tag #1308

jcubic opened this issue May 9, 2024 · 1 comment

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.

@jcubic
Copy link
Author

jcubic commented Jul 31, 2024

This one is not an issue with the latest version. I was updating the wrong thing.

@jcubic jcubic closed this as completed Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants