added NotFound

This commit is contained in:
“spicecat” 2022-06-13 00:14:41 -05:00
commit c149d99b57
5 changed files with 16 additions and 10 deletions

View file

@ -12,7 +12,7 @@
"superagent": "^7.1.6"
},
"scripts": {
"start": "PORT=3000 react-scripts start",
"start": "PORT=3006 react-scripts start",
"build": "react-scripts build",
"predeploy": "npm run build",
"deploy": "gh-pages -b gh-pages -d build",

View file

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en" dir="rtl">
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8" />

View file

@ -0,0 +1,12 @@
import { Link } from 'react-router-dom'
export default function NotFound() {
return (
<>
Page not found (404)
<br />
<Link to='/'>Return Home</Link>
</>
)
}

View file

@ -1,9 +1,4 @@
import React from 'react'
import ReactDOM from 'react-dom'
import App from './App'
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<React.StrictMode>
<App />
</React.StrictMode>
)
ReactDOM.createRoot(document.getElementById('root')).render(<App />)

View file

@ -1 +0,0 @@
export { }