Skip to content

Tag: redux

how to import child’s state to parent component

I want to import the child state to my parent component in order to change DOM, but I don’t know if its possible or how to do it shall I use Redux in this case ?? if not what possibly I must do to do that Answer You can create state in parent component and pass it to child component

how to build object JS

I have an array of booking and types. From these two arrays I need to build an object. Everything works great, except for the types. Types return an array in each object (same). How can you return the correct object? Answer found a solution to my problem. It was enough to add indexes

Uncomplete payload | React & Redux Toolkit

I have a big problem,maybe it’s not so big but i dont sleep for almost 24h because of it.I barely finished this Slice,but now,when i submit the data,i get only the automatically set id.. So,to be clear.I have a skill component where i have 2 input forms and a button,i need to retrieve data from both inp…