Currently I'm setting the state inside of main.js. I have a state.js file that I import and initialize. So inside that file I'll set all my default states such as LocalState.set('REGISTER_TYPE', 'user'). That way I can visually see every LocalState I have set. Just wondering if this is a good practice or if there would be a better place to initialize the state.
Currently I'm setting the state inside of main.js. I have a state.js file that I import and initialize. So inside that file I'll set all my default states such as LocalState.set('REGISTER_TYPE', 'user'). That way I can visually see every LocalState I have set. Just wondering if this is a good practice or if there would be a better place to initialize the state.