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

[Bug] jsx renderer is broken by babel's /*#__PURE__*/ comment #146

Open
farcaller opened this issue Nov 17, 2020 · 0 comments
Open

[Bug] jsx renderer is broken by babel's /*#__PURE__*/ comment #146

farcaller opened this issue Nov 17, 2020 · 0 comments
Labels

Comments

@farcaller
Copy link

Describe the bug

jsx renderer never renders any components anymore.

Steps to reproduce the behavior

Run the demo snippet from the readme using the jsx syntax.

Expected behavior

The element renders.

Additional context

Babel will return e.g. '/*#__PURE__*/\nReact.createElement(TestEl2, null, "children");' as a transpiled string (notice the /*#__PURE__*/, which will break the assumption that return will return the created element. THe inner function will return null instead.

@farcaller farcaller added the bug label Nov 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant