Functional Components and KeyCode Modifiers

Learn why we should avoid functional components and KeyCode modifiers in Vue 2 to enable easier migration.

Functional components

We can create functional components in both versions of Vue. A functional component is stateless and has neither data nor this context. It only has a render function. Thanks to that, functional components are faster to create and cheaper to render.

Get hands-on with 1200+ tech skills courses.