{"size": 635, "ext": "js", "max_stars_repo_path": "resources/js/components/Councillor.js", "max_stars_repo_name": "micklord49/cclp", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "resources/js/components/Councillor.js", "max_issues_repo_name": "micklord49/cclp", "max_issues_repo_issues_event_min_datetime": "2020-05-24T17:19:09.000Z", "max_issues_repo_issues_event_max_datetime": "2021-10-06T10:27:44.000Z", "max_forks_repo_path": "resources/js/components/Councillor.js", "max_forks_repo_name": "micklord49/cclp", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 5, "max_forks_count": null, "avg_line_length": 26.4583333333, "max_line_length": 85, "alphanum_fraction": 0.674015748}
import React, { Component } from 'react';
import ReactDOM from 'react-dom';

import CouncillorEdit from './CouncillorEdit'

export default class Main extends Component {
  render() {
      return (
        <CouncillorEdit guid={this.props.guid}/>
      );
  }
}

if (document.getElementById('root')) {
  if (document.getElementById('datapipe')) {
    const element = document.getElementById('datapipe')
    const props = Object.assign({}, element.dataset)
    ReactDOM.render(<Main {...props}/>, document.getElementById('root'));
  }
  else {
    ReactDOM.render(<h1>GUID PROPERTY MISSING</h1>, document.getElementById('root'));
  }
}
