{"size": 430, "ext": "js", "max_stars_repo_path": "src/pages/Error.js", "max_stars_repo_name": "sell/youtube-sub-tracker", "max_stars_repo_stars_event_min_datetime": "2020-07-26T05:51:25.000Z", "max_stars_repo_stars_event_max_datetime": "2021-04-22T21:18:36.000Z", "max_issues_repo_path": "src/pages/Error.js", "max_issues_repo_name": "sell/youtube-sub-tracker", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/pages/Error.js", "max_forks_repo_name": "sell/youtube-sub-tracker", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 5, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.8888888889, "max_line_length": 58, "alphanum_fraction": 0.4720930233}
import React from 'react';
import { Link } from 'react-router-dom';

function Error({location}) {
    return (
        <div className="error-page">
            <div>
                <p className="text-center">404 Error</p>
                <p> {location.pathname} doesn't exist </p>
            </div>
            <div>
                <Link to='/'>Go Home</Link>
            </div>   
        </div>
    )
}

export default Error;