Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Use shorthand property name in render method #3107

Merged
merged 1 commit into from
Jul 1, 2019

Conversation

ibreathebsb
Copy link
Contributor

Use shorthand property name in render method

Old render

class A extends Component {
  render() {
    const { name: name } = this.state // <= here
    return <div>{name}</div>
  }
}

New render

class A extends Component {
  render() {
    const { name } = this.state // <= here
    return <div>{name}</div>
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants