Reactのバケツリレーに疲れたら

理性捨ててprops全部渡すぞ

import Footer from './footer'
import Header from './header'
import Main from './main'
import React, { Component } from 'react'

export default class Root extends Component {
  render() {
    return(
      <div className="root">
        <Header {...this.props} />
        <Main {...this.props} />
        <Footer {...this.props} />
      </div>
    );
  }
}