React Redux: Adding to Arrays

state={title: '',resultCt: 0,searchResults: {},nominations: []}
case 'STORE_NOMINATION':return {...state,nominations: [...state.nominations, action.nominations]}




Software Engineer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Type Annotation vs Assertion in Typescript — one important difference

An Overview of the React Ecosystem

vcard credit card customer care number. 8582936101///8942031670

Typed Config via Context in React Native

How to render html string including script tags in React

Angular as a Frontend Framework, Evolution and Getting Started.

SSD Firmware Development — Part 5 — Code!

How to build a React Native App using Firebase. (Part 1)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Lawson Hung

Lawson Hung

Software Engineer

More from Medium

Some Changes in React Router v6

React JS Recap

Moving components using react.

React Hooks — Creating Custom Hooks