vuejs / docs

šŸ“„ Documentation for Vue 3
https://vuejs.org
Other
2.91k stars 4.36k forks source link

It is getting complicated to find the correct information in the Vue docs because there are now many ways to use Vue #1290

Closed julie777 closed 2 years ago

julie777 commented 2 years ago

As a relatively new user, I struggle finding the correct information, both in the Vue docs and with google searches. I can handle the Vue 2 vs 3, because at least the Vue docs are different. Of course Vue doc writers can't help with all the past information on StackOverflow, etc.

I would like to suggest changing the Vue 3 docs to

The variation are SFC vs non-SFC, Options API vs Composition API, vs Script Setup.

SFC

For me, I started with SFCs from the beginning (I am using Quasar) and anytime I see an example in the docs using raw Vue code I find it takes me quite a bit of extra time to decipher it.

I know that the docs promote SFC use, so I would expect the docs to provide examples in SFC format where possible. I would go so far as to relegate all non-SFC documentation to an appendix.

Which API

Considering the future, I believe that anyone using the composition api will soon migrate to the script setup version. Adding the use of unplugin-vue-components and unplugin-auto-imports to script setup makes Vue a joy to use. I can focus on the problem that I am trying to solve instead of writing a bunch of boilerplate code. Then when you add composables components become so much simpler it is amazing.

To support the future:

I really enjoy Vue and I would like to help make it better and even easier to use.

ShenQingchuan commented 2 years ago

Please check this repoļ¼š branch next and get a brand new docs here. it's totally rewritten with many best practices of Vue. There is a button for you to switch docs content between Options API and Composition API

NataliaTepluhina commented 2 years ago

Closing as new docs are default now and they cover most of the mentioned points