store-hhh
v1.0.2
Published
import { createStore } from 'redux'
Downloads
2
Readme
store
import { createStore } from 'redux'
const reducer = (state, active) => { if (active.type === 'CHANGE_LIST') { return { ...state, list: active.list } } return state }
const initalState = { list: [] }
export default createStore(reducer, initalState)