score:1

Accepted answer
render() {
    return (
        <LoginPage>
            {this.state.step === STEPS.Step1 && <LoginStep1 />}
            {this.state.step === STEPS.Step2 && <LoginStep2 />}
            {this.state.step === STEPS.Step3 && <LoginStep3 />}
        </LoginPage>
    )
}

Related Query

More Query from same tag