babel-plugin-transform-react-to-vue
Install
yarn add babel-plugin-transform-react-to-vue --dev
Usage
"plugins": "transform-react-to-vue"
Input:
state = hello: 'world' { this } { return <div className="App"> <div className="App-header" onClick=thismyMethod> <h2> Hello thisstatehello </h2> </div> <p className="App-intro"> To get started edit <code>src/Appjs</code> and save to reload </p> </div> } console ReactDOM
Output:
const App = hello: 'world' { return <div class="App"> <div class="App-header" onClick=thismyMethod> <h2> Hello this$datahello </h2> </div> <p class="App-intro"> To get started edit <code>src/Appjs</code> and save to reload </p> </div> } { return console } methods: { thishello = 'not world ;)' } el: document { return <App /> }
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Team
![]() |
![]() |
---|---|
EGOIST | Nick Messing |