added NotFound
This commit is contained in:
parent
4e33fd8938
commit
c149d99b57
5 changed files with 16 additions and 10 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en" dir="rtl">
|
||||
<html lang="en" dir="ltr">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
|
|
|
|||
12
src/containers/NotFound.jsx
Normal file
12
src/containers/NotFound.jsx
Normal 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>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
|
@ -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 />)
|
||||
|
|
@ -1 +0,0 @@
|
|||
export { }
|
||||
Reference in a new issue