The Problem
Vue has lots of tools out of the box that makes our life easier, e.g Vuex and Vue-router. But, it still relies too much on magical connections, which makes code hard to understand. In order to help IDE and future me with code readability, I've started to think about hooks and patterns that come along with them.
The Code
In this sandbox, you can find React's Context Provider Pattern applied to Vue's Composition API provide
and inject
methods.
from DZone.com Feed https://ift.tt/3DyFuyg
No comments:
Post a Comment