score:1

Accepted answer
// extract to components

export class Dashboard extends React.Component {
    render() {
        return(<div className="h-100">
            <ConnectionPannel />
        </div>);
    }
}

function ConnectionPannel() {
  return (
    <div>
      <LoginTextBox />
    </div>
  )
}

function LoginTextBox() {
  return <div>Hello World</div>
}

score:0

    connectionPannel = () => {
        return(<div>
            {this.loginTextBox()}
        </div>)
    }


Related Query

More Query from same tag