import React from 'react';

class Main extends React.Component {
  constructor(props) {
    super(props);
  }

  render() {
    return (
      <div class="main">
        {React.cloneElement(this.props.children, this.props)}
      </div>
    );
  }
}

export default Main;

import React from 'react';

class Main extends React.Component {
  constructor(props) {
    super(props);
  }

  render() {
    return (
      <div class="main">
        {this.props.children}
      </div>
    );
  }
}

export default Main;

Resolve non-fatal errors about refs
Resolve non-fatal errors about refs
