Skip to content

Category: Questions

How to update the state in React Redux?

I’m using a reducer to set the state in Redux. My state currently looks something like this. In my old reducer, I was just getting the conversations array and setting that but now I need access to the activeConversation string as well. Therefore, I decided to use my root reducer which combines everythin…

Multiple arrays inside a array in javascript

when i do console.log(myArray) I obtain this: console.log result I want to take a value inside only one of this arrays, but how? When i do console.log(array[0]) I obtain this result: Answer From what I can see in the original question so far, the output of this function is actually three different console.log…