News for hackers. Stuff that matters.
Re:Pros and Cons of using immutability with React.js by k__ on Friday August 14, 2015 @12:03PM (#10060878)
Yes, here some simple examples:

    (state, action) => ({...state, loading: true})

    (state, {error}) => ({...state, error, loading: false})

    (state, {result:{data}}) => ({...state, ...data, loading: false})

There are no comments on this comment yet.