diff --git a/src/.vuepress/config.js b/src/.vuepress/config.js index 942e852a29..50163185c0 100644 --- a/src/.vuepress/config.js +++ b/src/.vuepress/config.js @@ -75,7 +75,7 @@ const sidebar = { { title: 'Migration to Vue 3', collapsable: true, - children: ['migration'] + children: ['migration', 'migration/functional-components'] }, { title: 'Contribute to the Docs', diff --git a/src/guide/migration/functional-components.md b/src/guide/migration/functional-components.md new file mode 100644 index 0000000000..31b2bd8086 --- /dev/null +++ b/src/guide/migration/functional-components.md @@ -0,0 +1,78 @@ +# Functional Components + +## Overview + +In terms of what has changed, at a high level: + +- Performance gains from v2 for functional components are now negligible in v3, so we recommend just using stateful components +- `functional` attribute on single-file component `