From 9bfec846620f5495ccd99d6e9c43899c4257254a Mon Sep 17 00:00:00 2001 From: Daniel Fjeldstad <45217974+w3bdesign@users.noreply.github.com> Date: Thu, 18 Mar 2021 00:37:04 +0100 Subject: [PATCH] Deprecation of functional components in Vue 3 Mention deprecation of functional components in Vue 3 --- docs/patterns/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/patterns/README.md b/docs/patterns/README.md index 8892ede..b2fed98 100644 --- a/docs/patterns/README.md +++ b/docs/patterns/README.md @@ -389,6 +389,8 @@ With the above code example, the rendered component will be destroyed if a diffe A functional component is a special SFC, it is basically a component that is **stateless** (meaning no script tag). It only accepts `props` in order to display data. +Note that in Vue 3, the `functional` attribute is deprecated and that using stateful components is the recommended method. + In order to make a SFC a functional one you add the the `functional` attribute to the `