by m0meni · 8y ago · 0 comments
What about the syntax do you find confusing? The rest is all just ES6 + class properties.
static getDerivedStateFromProps(nextProps, prevState)
Instead of getDerivedStateFromProps(nextProps)
Was it to prevent people from mutating the object perhaps?