Answer the question
In order to leave comments, you need to log in
How to properly work with state in Redux?
Imagine there is a tickets component.
Their state is stored in Redux. (Array with objects)
With this piece of code, I draw each ticket in applications.
// Main Component
this.props.tickets.map((ticket) => {
return <TicketRow key={ ticket.id } ticket={ ticket } />
})
// TicketRow Component
<Button onClick={this.props.openDialog}>Open Modal</Button>
<DialogWindow />
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question