paint-brush
What is the Difference Between the Composition and Options API in Vue?by@smpnjn
660 reads
660 reads

What is the Difference Between the Composition and Options API in Vue?

by Johnny Simpson5mMay 12th, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

The Composition API lets us create components without the need for a large single exportable object. It also has the added benefit of **compartmentalizing** code. With Vue 3, there was one way to create components in Vue. Vue 2 methodology is now known as the **[Options API* - the Composition and Options API are different. In the Options API, we can import something called 'ref' and use 'reactive' variables to create reactive variables.

Company Mentioned

Mention Thumbnail
featured image - What is the Difference Between the Composition and Options API in Vue?
Johnny Simpson HackerNoon profile picture
Johnny Simpson

Johnny Simpson

@smpnjn

Product, Engineering, Web

About @smpnjn
LEARN MORE ABOUT @SMPNJN'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Johnny Simpson HackerNoon profile picture
Johnny Simpson@smpnjn
Product, Engineering, Web

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here
Platypush
Joyk
Coffee-web
Unni