Comments (3)
can you provide example?
and i think this is equivalent of updated
from vue
https://vuejs.org/v2/guide/instance.html#Instance-Lifecycle-Hooks
from babel-plugin-transform-react-to-vue.
It is possibly closer to beforeUpdate
since it is called even when the virtual DOM is not changed (but the render function did get called via a props or state change). There are also additional parameters which would have to be modelled manually since I don't believe Vue offers a similar API for prevProps
and prevState
. They are described here: https://facebook.github.io/react/docs/react-component.html#componentdidupdate
In what form would you like the example to be? Currently the transform treats componentDidUpdate
like an un-special function and simply plops the method into the 'methods' Vue property.
from babel-plugin-transform-react-to-vue.
idk, they will just need a bit more data to easier implement this (more you explain == less work they have)
from babel-plugin-transform-react-to-vue.
Related Issues (12)
- Handle constructor
- setState HOT 2
- propTypes not transformed to vue HOT 1
- this.refs not transformed to this.$refs and ref callbacks don't work
- Detect render props smartly
- status on project
- [Help] "extends React.PureComponent"
- Error in rendering React component inside Vue: Cannot call a class as a function HOT 1
- componentWillReceiveProps transfrom result was wrong HOT 2
- Transform propTypes and defaultProps HOT 1
- React.Component is not transformed HOT 3
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-react-to-vue.