JSX - incorrect babel configuration #373
Unanswered
sgurukrupa
asked this question in
Q&A
Replies: 1 comment
-
After some struggle, I realized that for the .babelrc configuration cited in the docs to work, I need to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The docs explain the use of Babel to transpile JSX to JavaScript for Redom. The docs quote the following .babelrc file:
{ "plugins": [ "babel-plugin-transform-redom-jsx", [ "transform-react-jsx", { "pragma": "el" } ] ] }
First off, the
transform-react-jsx
seems to be clearly wrong! What does React have to do with Redom. Secondly, replacingtransform-react-jsx
withtransform-redom-jsx
causes errors when Babel transpiler runs. What's the correct babel configuration to get JSX transpile to JavaScript?Beta Was this translation helpful? Give feedback.
All reactions