Closed fjc0k closed 6 years ago
@yyx990803 @nickmessing
What's your idea? Can I make a PR?
It's already supported as a separate plugin :smile: https://github.com/nickmessing/babel-plugin-jsx-v-model
@fnlctrl It just supports default model option ({ prop: 'value', event: 'input' }
): https://github.com/nickmessing/babel-plugin-jsx-v-model/issues/10
I see.. Feel free to submit a PR to that repo 🙂 .
The api just like:
It's equivalent to:
or: