Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2021-1-capstone-design1
/
GCL_Project1
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
안형욱
2021-04-13 21:02:49 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
50eae00ff541ddef0140f8a417ff7cdf3ab51e58
50eae00f
1 parent
78c7513e
feat: 기본 Route 추가
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
frontend/src/App.js
frontend/src/App.js
View file @
50eae00
const
App
=
()
=>
{
return
<
div
className
=
'App'
>
Hello
App
<
/div>
;
};
import
React
from
'react'
;
import
{
BrowserRouter
,
Route
,
Switch
}
from
'react-router-dom'
;
import
Home
from
'./pages/Home'
;
const
App
=
()
=>
(
<
BrowserRouter
>
<
Switch
>
<
Route
path
=
"/"
exact
component
=
{
Home
}
/
>
<
/Switch
>
<
/BrowserRouter
>
);
export
default
App
;
...
...
Please
register
or
login
to post a comment