{"size": 236, "ext": "js", "max_stars_repo_path": "src/components/useDidMount.js", "max_stars_repo_name": "DurchFastenNet/status.durchfasten.net", "max_stars_repo_stars_event_min_datetime": "2021-12-14T16:57:29.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-25T02:56:13.000Z", "max_issues_repo_path": "src/components/useDidMount.js", "max_issues_repo_name": "DurchFastenNet/status.durchfasten.net", "max_issues_repo_issues_event_min_datetime": "2021-06-27T14:26:49.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-16T13:24:36.000Z", "max_forks_repo_path": "src/components/useDidMount.js", "max_forks_repo_name": "TNPro93/status.azuria-rising.de", "max_forks_repo_forks_event_min_datetime": "2021-06-28T19:02:53.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-25T09:49:54.000Z"}
{"max_stars_count": 3, "max_issues_count": 56, "max_forks_count": 6, "avg_line_length": 16.8571428571, "max_line_length": 49, "alphanum_fraction": 0.6355932203}
import { useEffect, useState } from "react";

const useDidMount = () => {
  const [hasMounted, setHasMounted] = useState();

  useEffect(() => {
    setHasMounted(true);
  }, []);

  return [hasMounted];
};

export default useDidMount;
