• It's a new javascript construct in ES 6 that allows you to match property of an object in assignment. The syntax you need is:

    const { local: loc } = this.props

    which translates to: "declare a constant loc and assign it the value of property local from this.props".

About

Avatar for Robin @Robin started