Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

fiter on redux state

case 'DELETE_HOSTNAME':
  return { hostnames: state.hostnames.filter(hostname =>
     hostname.id !== action.hostnameId
  )}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #fiter #redux #state
ADD COMMENT
Topic
Name
2+9 =