You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hmm, looks possible with ComponentName.propTypes = {} and static propTypes = {}... I think we can use that as props index and use this.$props instead of this.$attrs, what do you think @egoist?
P.S. using on* for events is what I'd like to do since in Vue JSX this is the delimiter between event and prop so if you pass a prop like myCallback={(data) => console.log(data)} it will be a prop instead of event.
armano2
changed the title
propTypes not transformed to vue to
propTypes not transformed to vue
Jan 26, 2021
https://goo.gl/Wq1fxi
example:
propTypes can be used to make 2 thinks in react:
we can determine this based on value of property if its
React.PropTypes.func
than this is an$emit
The text was updated successfully, but these errors were encountered: