single-source.getState([path])
const createStore = require("single-source").createStore;
const USER_EMAIL = 'user.email';
const initialState = {
items: [],
currentLanguage: 'en',
user: {
email: 'tony@stark.com',
firstName: 'Tony',
lastName: 'Stark'
}
};
const myStore = createStore(initialState);
myStore.getState(USER_EMAIL);
no comments