import initState from "./state" ; export default function reducer ( state = initState , action ) { switch ( action . type ) { case "ADD_CNT" : return Object . assign ( { } , state , { cnt : state . cnt + 1 } ) ; default : return state ; } }