/vue3-state-definemodel

A sample repository showing how to use defineModel in Vue 3.4 with composables to easily and cleanly manage state.

Primary LanguageVue

A Conceptual Model of State in Vue 3.4

Getting state and componentization right in the frontend remains one of the biggest challenges as modern web applications increase in complexity. The defineModel macro released with Vue 3.4 provides a streamlined way to think about how to model complex, inter-component state management that still retains strong locality and compartmentalization of data

The examples in this codebase accompany the writeup here: https://chrlschn.dev/blog/2024/01/a-conceptual-model-of-state-in-vue-34-using-definemodel/#using-definemodel-with-composables

Running

To run the examples:

yarn
yarn dev