const counter =(state=1, action)=>{ switch(ation.type){ case 'INCREMENT': return state+1; default: return state; } } const {createStore} from Redux; const store =createStore(counter); console.log(store.getState()) document.body.innerHTML='111'