Some confusions about Vuejs3
What problem does this feature solve?
Example code add
Composition api
support Vuejs docs recommendComposition api
, but most of example code areOptions api
, so please addComposition api
code example stay withOptions api
code example together. I do believe it will be good forComposition api
.Improve the
Composition api
compatible withOptions api
Vuejs docs say theComposition api
equal toOptions api
, But I found that the example code has much more different, like:mounted ==> onMounted, computed ==> onComputed / ...
,Why not let them use the same name in
Composition api
andOptions api
? Why not import them(ref/mounted/computed/created) automatically? I do think using the same name will be accepted quickly by most of users.