{"size": 1134, "ext": "js", "max_stars_repo_path": "src/App.js", "max_stars_repo_name": "RakshithA1996/job-application-portal", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/App.js", "max_issues_repo_name": "RakshithA1996/job-application-portal", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/App.js", "max_forks_repo_name": "RakshithA1996/job-application-portal", "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": 27.6585365854, "max_line_length": 74, "alphanum_fraction": 0.6093474427}
import React, { Component } from "react";
import Home from "./components/Home/Home";
import JobApplication from "./components/JobApplication/JobApplication";
import ScrollToTop from "./ScrollToTop";
import JobForm from "./components/JobForm/JobForm"
import JobList from "./components/JobList/JobList"
import "./App.scss";
import "react-toastify/dist/ReactToastify.css";

import { BrowserRouter, Switch, Route, Redirect } from "react-router-dom";

class App extends Component {
  constructor() {
    super();
    this.state = {};
  }

  componentDidMount(){
  }

  render() {
    return (
      <div className="App">
        <BrowserRouter>
          <ScrollToTop>
            <Switch>
              <Route exact path="/home" component={Home} />
              <Route exact path="/career" component={JobApplication} />
              <Route exact path="/job-list" component={JobList} />
              <Route exact path="/apply-job" component={JobForm} />
              <Route render={() => <Redirect to="/home" />} />
            </Switch>
          </ScrollToTop>
        </BrowserRouter>
      </div>
    );
  }
}

export default App;
