Vue JS 2 筆記
Information about this note
- Must read document by vue official website:
Introduction to Vue
Vue 3 New Features
- The Composition API : ⭐⭐⭐
- Improves on reusability, organization & readability
- It does this by giving us a new setup( ) function
- Multiple Root Elements :
- Can have many root elements side-by-side in a component
- for example :
- Teleport Component :
- Render content from one component in a different place in the DOM
- Useful for things like modals