{"size": 440, "ext": "js", "max_stars_repo_path": "react-ui/src/components/Auth/Secret.js", "max_stars_repo_name": "jdeboi/plantDat-react", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "react-ui/src/components/Auth/Secret.js", "max_issues_repo_name": "jdeboi/plantDat-react", "max_issues_repo_issues_event_min_datetime": "2020-07-17T14:25:44.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-09T20:52:27.000Z", "max_forks_repo_path": "server/client/src/components/Auth/Secret.js", "max_forks_repo_name": "jdeboi/plantDat-react", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 16.9230769231, "max_line_length": 50, "alphanum_fraction": 0.5181818182}
import React, { Component } from 'react';

export default class Secret extends Component {
  constructor() {
    super();
    this.state = {
      message: 'Loading...'
    }
  }

  componentDidMount() {
    fetch('/api/secret')
      .then(res => res.text())
      .then(res => this.setState({message: res}));
  }

  render() {
    return (
      <div>
        <h1>Secret</h1>
        <p>{this.state.message}</p>
      </div>
    );
  }
}
