What does it mean to return a class in a function, like this:
setItems: action((state, newItems) => {
state.items = newItems.map(data => Class != null ? new Class(data) : data)
})
I use React with easy-peasy state management library
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
What does it mean to return a class in a function, like this:
setItems: action((state, newItems) => {
state.items = newItems.map(data => Class != null ? new Class(data) : data)
})
I use React with easy-peasy state management library