{"size": 873, "ext": "js", "max_stars_repo_path": "client/src/app/home/containers/HomePage.js", "max_stars_repo_name": "swiety85/DNRRM-Prototype", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "client/src/app/home/containers/HomePage.js", "max_issues_repo_name": "swiety85/DNRRM-Prototype", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "client/src/app/home/containers/HomePage.js", "max_forks_repo_name": "swiety85/DNRRM-Prototype", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.25, "max_line_length": 71, "alphanum_fraction": 0.5589919817}
import React from 'react';
import Axios from 'axios';
import Button from 'react-bootstrap/Button';
import logo from './../../../assets/images/logo.svg';
import './HomePage.scss';

function Home () {
  const getUsers = () => {
    Axios.get ('/api/users').then (response => console.log (response));
  };

  return (
    <div className="adminx">
      <header className="adminx__header">
        <img src={logo} className="adminx__logo" alt="logo" />
        <p>
          Edit <code>src/App.js</code> and save to reload.
        </p>
        <a
          className="adminx__link"
          href="https://reactjs.org"
          target="_blank"
          rel="noopener noreferrer"
        >
          Learn React
        </a>
        <Button variant="secondary" onClick={getUsers}>
          GET USERS
        </Button>
      </header>
    </div>
  );
}

export default Home;
