Skip to content
This repository has been archived by the owner on Sep 8, 2021. It is now read-only.

Use destructuring to get props #142

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mrassili
Copy link

@mrassili mrassili commented Oct 1, 2019

Tiny tweak :)

@@ -38,8 +38,7 @@ class Login extends React.Component {
}

render() {
const email = this.props.email;
const password = this.props.password;
const { email, password } = this.props;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice change

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

Successfully merging this pull request may close these issues.

None yet

2 participants