Vue component actually runs in the React runtime. It means, you can not access VNode, you can not use Render. Conversely, if your previous Vue component does not involve both things, it would most likely run directly in React.
- web: react-vue-loader (demo)
- native: vue-native-scripts (demo)
Use the react-vue-loader options:
vue
-
ignoredElements (web only)
-
keyCodes (web only)
Use the react-vue-loader options:
vue
-
Vue.directive (web only)
-
directives (web only)
- Hook-Functions
- bind
- update
- unbind
- Directive-Hook-Arguments
- el
- binding
- vnode (only one property
context
)
- Hook-Functions
-
v-text (web only)
-
v-html (web only)
-
v-on (web only)
-
v-model (web only)
Unsupported features: value bindings checkbox & value bindings select options
-
transition (web only)
The <transition> would render an extra DOM element, you can configure
tag
attribute to custom the extra DOM elementUnsupported features: transition modes
Use React Server Rendering