import { createReducer } from 'utils/createReducer' ; import { searchHero } from '../actions' ; const initialState = '' ; export default createReducer ( { [ searchHero ] : ( state , name ) => name } , initialState ) ;