[Vuejs]-Rewriting a VueJS Component using JSX and the Render Function

0👍

It doesn’t sound like you’ve got Webpack with the correct babel plugins set up for transpiling.

JSX isn’t natively supported by the browser, a module bundler like Webpack will transpile (convert from JSX to Javascript) from JSX, which isn’t understood by the browser, to a format that is understood by the browser.

That’s going to be the first step you need to take and probably what you’re missing.

0👍

Just install babel-plugin-transform-vue-jsx
I’ve got nothing to add to the configuration. It worked directly.

Leave a comment