UNPKG

summer-time

Version:

🍧 A modern Dark Material theme for VS-Code IDE 🍦

16 lines (12 loc) 362 B
import { createStore as reduxCreateStore } from "redux"; const reducer = (state, action) => { if (action.type === `INCREMENT`) { return Object.assign({}, state, { count: state.count + 1 }); } return state; }; const initialState = { count: 0 }; const createStore = () => reduxCreateStore(reducer, initialState); export default createStore;