Comments (9)
Well, try CodePan 😂 https://codepan.net/boilerplate/vue-jsx 100% Vue JSX support.
from babel-plugin-transform-vue-jsx.
Although a bit finicky, webpackbin allows to use JSX. Here's a basic example using Vue and JSX.
You need to configure webpackbin to use Vue and tell babel to support JSX.
The webpackbin link goes to some malicious website. Please kill the link.
from babel-plugin-transform-vue-jsx.
I think for this to work, Codepen etc. would have to provide a way to add individual settings to the babel config, since you have to tell babel that you use this plugin:
{
"presets": ["es2015"],
"plugins": ["transform-vue-jsx"]
}
from babel-plugin-transform-vue-jsx.
Okay. So I tried to use vue cli with vue 2.0 and npm install
this stuff here:
npm install babel-plugin-syntax-jsx\ babel-plugin-transform-vue-jsx\ babel-helper-vue-jsx-merge-props\ --save-dev
But I got errors and it would not install the plugins. I know Vue 2.0 is not out yet; however, I am eager to start using it with JSX and would like to get started. How do I configure vue-cli so I can easily use the JSX plugin?
Thanks
from babel-plugin-transform-vue-jsx.
If it did not install the plugins, then you had a problem with npm, not Vue. At least that's what I have to assume because you did not mention what errors you had occur.
Installations instructions are in the README, if you get stuck you can always ask on the forum.vuejs.org
from babel-plugin-transform-vue-jsx.
Although a bit finicky, webpackbin allows to use JSX. Here's a basic example using Vue and JSX.
You need to configure webpackbin to use Vue and tell babel to support JSX.
from babel-plugin-transform-vue-jsx.
For people who need a simple pure browser based vue playground with jsx support , check vuep.
Even vuex may be possible with extra effort : )
SO, Maybe the browser used babel plugin for vue jsx is useful? #53
from babel-plugin-transform-vue-jsx.
@p-adams, as commented above, you can use @egoist's project for that.
from babel-plugin-transform-vue-jsx.
Just FYI, CodeSandbox has great Vue (including Vue JSX) support: https://codesandbox.io/s/vue
from babel-plugin-transform-vue-jsx.
Related Issues (20)
- how to pass a prop named "model" to the custom component like el-form
- `h` is not auto-injected with Laravel-Mix and Vue using @vue/babel-plugin-transform-vue-jsx v1.0.0-beta.3 HOT 1
- sass content in .vue file not compiled HOT 1
- Concrete preset instead on env HOT 1
- Vuetify modifiers behave differently
- Vue 3 and TSX HOT 6
- rollup+babel+babel-plugin-transform-vue-jsx package size so big
- delete this
- delete this
- delete this
- delete this
- JSX fragment syntax (<> ... </>) HOT 4
- How to add JSX Support to Existing MVC .NET Application
- How to add 'comments' in vue jsx HOT 2
- JSX compilation fails when nested under another node_modules directory
- Support for xmlns:xlink attribute
- how to write the arguments of the custom directives? HOT 2
- String turn into jsx code HOT 1
- [Question] How to use emits in component ?
- Convert JSX to string in template
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from babel-plugin-transform-vue-jsx.