Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김건희
/
OSSW_Weather_Briefing
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
김건희
2022-05-17 19:43:12 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5b075ca46bd70156cf126ddf0ec139478ccda5a2
5b075ca4
1 parent
8c6cfb46
[Add] Router Setting
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
2 deletions
weather_briefing/package-lock.json
weather_briefing/package.json
weather_briefing/src/App.js
weather_briefing/src/index.js
weather_briefing/package-lock.json
View file @
5b075ca
...
...
@@ -6202,6 +6202,14 @@
"resolved"
:
"https://registry.npmjs.org/he/-/he-1.2.0.tgz"
,
"integrity"
:
"sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw=="
},
"history"
:
{
"version"
:
"5.3.0"
,
"resolved"
:
"https://registry.npmjs.org/history/-/history-5.3.0.tgz"
,
"integrity"
:
"sha512-ZqaKwjjrAYUYfLG+htGaIIZ4nioX2L70ZUMIFysS3xvBsSG4x/n1V6TXV3N8ZYNuFGlDirFg32T7B6WOUPDYcQ=="
,
"requires"
:
{
"@babel/runtime"
:
"^7.7.6"
}
},
"hoopy"
:
{
"version"
:
"0.1.4"
,
"resolved"
:
"https://registry.npmjs.org/hoopy/-/hoopy-0.1.4.tgz"
,
...
...
@@ -10077,6 +10085,23 @@
"resolved"
:
"https://registry.npmjs.org/react-refresh/-/react-refresh-0.11.0.tgz"
,
"integrity"
:
"sha512-F27qZr8uUqwhWZboondsPx8tnC3Ct3SxZA3V5WyEvujRyyNv0VYPhoBg1gZ8/MV5tubQp76Trw8lTv9hzRBa+A=="
},
"react-router"
:
{
"version"
:
"6.3.0"
,
"resolved"
:
"https://registry.npmjs.org/react-router/-/react-router-6.3.0.tgz"
,
"integrity"
:
"sha512-7Wh1DzVQ+tlFjkeo+ujvjSqSJmkt1+8JO+T5xklPlgrh70y7ogx75ODRW0ThWhY7S+6yEDks8TYrtQe/aoboBQ=="
,
"requires"
:
{
"history"
:
"^5.2.0"
}
},
"react-router-dom"
:
{
"version"
:
"6.3.0"
,
"resolved"
:
"https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.3.0.tgz"
,
"integrity"
:
"sha512-uaJj7LKytRxZNQV8+RbzJWnJ8K2nPsOOEuX7aQstlMZKQT0164C+X2w6bnkqU3sjtLvpd5ojrezAyfZ1+0sStw=="
,
"requires"
:
{
"history"
:
"^5.2.0"
,
"react-router"
:
"6.3.0"
}
},
"react-scripts"
:
{
"version"
:
"5.0.1"
,
"resolved"
:
"https://registry.npmjs.org/react-scripts/-/react-scripts-5.0.1.tgz"
,
...
...
weather_briefing/package.json
View file @
5b075ca
...
...
@@ -13,6 +13,7 @@
"nodemon"
:
"^2.0.16"
,
"react"
:
"^18.1.0"
,
"react-dom"
:
"^18.1.0"
,
"react-router-dom"
:
"^6.3.0"
,
"react-scripts"
:
"5.0.1"
,
"web-vitals"
:
"^2.1.4"
},
...
...
weather_briefing/src/App.js
View file @
5b075ca
import
'./App.css'
;
import
RegisterPage
from
'./component/views/RegisterPage/RegisterPage'
;
import
LoginPage
from
'./component/views/LoginPage/LoginPage'
;
import
{
Route
,
Routes
}
from
'react-router-dom'
;
function
App
()
{
return
(
<
div
>
<
LoginPage
/>
<
Routes
>
<
Route
exact
path
=
"/login"
element
=
{
<
LoginPage
/>
}
/
>
<
Route
exact
path
=
"/register"
element
=
{
<
RegisterPage
/>
}
/
>
<
/Routes
>
<
/div
>
);
}
...
...
weather_briefing/src/index.js
View file @
5b075ca
...
...
@@ -3,11 +3,14 @@ import ReactDOM from 'react-dom/client';
import
'./index.css'
;
import
App
from
'./App'
;
import
reportWebVitals
from
'./reportWebVitals'
;
import
{
BrowserRouter
}
from
'react-router-dom'
;
const
root
=
ReactDOM
.
createRoot
(
document
.
getElementById
(
'root'
));
root
.
render
(
<
React
.
StrictMode
>
<
App
/>
<
BrowserRouter
>
<
App
/>
<
/BrowserRouter
>
<
/React.StrictMode
>
);
...
...
Please
register
or
login
to post a comment