Created
May 28, 2023 09:32
-
-
Save Akash52/5cef66c60452668f03aa45003841391b to your computer and use it in GitHub Desktop.
index.html for react
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<meta name="theme-color" content="#000000" /> | |
<meta name="description" content="Rentals App" /> | |
<meta name="author" content="Rental App" /> | |
<meta name="keywords" content="rental, app, rentals app" /> | |
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" /> | |
<link rel="apple-touch-icon" href="%PUBLIC_URL%/apple-touch-icon.png" /> | |
<link rel="maskable" href="%PUBLIC_URL%/maskable.png" /> | |
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" /> | |
<title>React Rental App</title> | |
</head> | |
<body> | |
<noscript>You need to enable JavaScript to run this app.</noscript> | |
<div id="root"></div> | |
<script> | |
if ("serviceWorker" in navigator) { | |
window.addEventListener("load", () => { | |
navigator.serviceWorker | |
.register("./serviceworker.js") | |
.then((reg) => console.log("Success: ", reg.scope)) | |
.catch((err) => console.log("Failure: ", err)); | |
}); | |
} | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment