1.0.0 • Published 5 years ago

react2vue v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

react2vue

NPM version NPM downloads CircleCI donate chat

Install

yarn add react2vue

Usage

import Vue from 'vue'
import React from 'react'
import react2vue from 'react2vue'

const ReactComponent = () => {
  const [count, setCount] = React.useState(0)
  return <button onClick={() => setCount(count + 1)}>{count}</button>
}

const VueComponent = react2vue(ReactComponent)

new Vue({
  el: '#app',
  render: h => h(VueComponent)
})

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

react2vue © EGOIST, Released under the MIT License. Authored and maintained by EGOIST with help from contributors (list).

github.com/egoist · GitHub @EGOIST · Twitter @_egoistlily