Managing a simple store in my project has been a breeze (check out the code snippet). I've noticed that changes made to data in a RouterView reflect instantly in a Navigation Component. This behavior reminds me of an observer pattern, what do you think?
// store.js
import { reactive } from 'vue'
export const store = reactive({
gender: "",
name: "",
});
Question: Now I'm curious to learn more about how this mechanism operates and visualize how it would be implemented in Vanilla JS.