paint-brush
Context and Provider Pattern Using Vue 3 Composition APIby@maoberlehner
3,944 reads
3,944 reads

Context and Provider Pattern Using Vue 3 Composition API

by Markus Oberlehner4mMay 27th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

React Context API provides a way to share properties that are required by many components (e.g., user settings, UI theme) without having to pass a prop through every level of the tree (aka prop drilling) Although Vue.js does not provide the same abstraction out of the box, in this article, we’ll see that in Vue 3, we have all the tools we need to replicate the same functionality quickly. In this example, we look at how we can use this pattern to make certain information globally available everywhere in our application.

Company Mentioned

Mention Thumbnail
featured image - Context and Provider Pattern Using Vue 3 Composition API
Markus Oberlehner HackerNoon profile picture
Markus Oberlehner

Markus Oberlehner

@maoberlehner

L O A D I N G
. . . comments & more!

About Author

Markus Oberlehner HackerNoon profile picture
Markus Oberlehner@maoberlehner

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