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

Support/switch registration form #2125

Merged

Conversation

itizawa
Copy link
Contributor

@itizawa itizawa commented May 8, 2020

No description provided.

@itizawa itizawa self-assigned this May 8, 2020
componentDidMount() {
const { hash } = window.location;
if (hash === '#register') {
this.setState({ isRegistering: true });
Copy link
Member

Choose a reason for hiding this comment

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

些細な差だが、この処理はコンストラクタでやったほうがいい
https://ja.reactjs.org/docs/react-component.html#componentdidmount

}
}

onClickSwitchFormBtn() {
Copy link
Member

Choose a reason for hiding this comment

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

onHoge は外部公開する porps の名前等にすべきで、ここでは素直に flip() とか switchForm とかでいいと思う。

@itizawa itizawa merged commit 2b4902b into support/reactify-login-page-stock May 10, 2020
@itizawa itizawa deleted the support/switch-registration-form branch May 10, 2020 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants