Closed
Description
We already have Composition API basics document (thanks @shentao !) but we also need to have an in-depth guide similar to what we have for Components In-Depth. While working on it, we could move part of the descriptions from Composition API reference and Reactivity APIs as they're waaaay too detailed for API reference.
Here is a rough structure of the section:
-
setup()
- props and context as
setup()
parameters
- props and context as
- Reactive state with
ref
andreactive
- Template refs
- Destructuring
reactive
torefs
- Computed and watchers (maybe we'd need to split this to separate chapters as watchers will contain a lot of info)
- Lifecycle hooks
- Provide/inject in the Composition API
Please keep in mind this is very rough draft and I would be happy to add any fixes/improvements to it