import React, { Component } from 'react'; import Mobile from './Mobile/Mobile'; import Code from './Code/Code'; import './Login.scss'; export default class Login extends Component { constructor(props) { super(props); this.state = { section : 0, } } setSection = (val) => { this.setState({ section : val, }) } render() { return(
{ this.state.section === 0 ? : null } { this.state.section === 1 ? : null }
); } }