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

Comments within JSX Expressions are not preserved #41754

Closed
weswigham opened this issue Dec 1, 2020 · 0 comments · Fixed by #41757
Closed

Comments within JSX Expressions are not preserved #41754

weswigham opened this issue Dec 1, 2020 · 0 comments · Fixed by #41757
Assignees
Labels
Bug A bug in TypeScript Fix Available A PR has been opened for this issue

Comments

@weswigham
Copy link
Member

I found following unexpected behaviour with tsx (v4.1.2):

class Component {
    render() {
        return <div>
            {/* missing */}
            {null/* preserved */}
        </div>;
    }
}

Originally posted by @marc3lsk in #40074 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Fix Available A PR has been opened for this issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants