Toggle navigation
Toggle navigation
This project
Loading...
Sign in
정민우
/
vps_service
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
ch4n3.yoon
2021-05-04 16:47:44 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
11e3c3c86c62333885ced0f326138a285c34555e
11e3c3c8
1 parent
ba6b69d4
[Edit] Apply Chakra on React
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
21 deletions
frontend/package.json
frontend/src/App.js
frontend/src/components/Index.js
frontend/yarn.lock
frontend/package.json
View file @
11e3c3c
...
...
@@ -3,11 +3,17 @@
"version"
:
"0.1.0"
,
"private"
:
true
,
"dependencies"
:
{
"@chakra-ui/core"
:
"^0.8.0"
,
"@chakra-ui/react"
:
"^1.6.3"
,
"@emotion/react"
:
"11"
,
"@emotion/styled"
:
"11"
,
"@testing-library/jest-dom"
:
"^5.11.4"
,
"@testing-library/react"
:
"^11.1.0"
,
"@testing-library/user-event"
:
"^12.1.10"
,
"framer-motion"
:
"4"
,
"react"
:
"^17.0.2"
,
"react-dom"
:
"^17.0.2"
,
"react-router-dom"
:
"^5.2.0"
,
"react-scripts"
:
"4.0.3"
,
"web-vitals"
:
"^1.0.1"
},
...
...
frontend/src/App.js
View file @
11e3c3c
import
logo
from
'./logo.svg'
;
import
'./App.css'
;
import
React
,
{
useEffect
}
from
'react'
import
{
BrowserRouter
,
Route
,
Redirect
,
Switch
,
Link
}
from
'react-router-dom'
import
{
ChakraProvider
}
from
"@chakra-ui/react"
import
Index
from
'./components/Index'
function
App
()
{
const
App
=
()
=>
{
return
(
<
div
className
=
"App"
>
<
header
className
=
"App-header"
>
<
img
src
=
{
logo
}
className
=
"App-logo"
alt
=
"logo"
/>
<
p
>
Edit
<
code
>
src
/
App
.
js
<
/code> and save to reload
.
<
/p
>
<
a
className
=
"App-link"
href
=
"https://reactjs.org"
target
=
"_blank"
rel
=
"noopener noreferrer"
>
Learn
React
<
/a
>
<
/header
>
<
/div
>
);
<
ChakraProvider
>
<
BrowserRouter
>
<
Switch
>
<
Route
exact
path
=
"/"
component
=
{
Index
}
/
>
<
Redirect
path
=
"*"
to
=
"/"
/>
<
/Switch
>
<
/BrowserRouter
>
<
/ChakraProvider
>
)
}
export
default
App
;
export
default
App
...
...
frontend/src/components/Index.js
0 → 100644
View file @
11e3c3c
import
React
,
{
useEffect
}
from
'react'
import
{
BrowserRouter
,
Route
,
Redirect
,
Switch
,
Link
}
from
'react-router-dom'
import
{
Container
}
from
"@chakra-ui/react"
const
Index
=
()
=>
{
return
(
<
Container
>
asdfasdfasdf
<
/Container>
)
}
export
default
Index
frontend/yarn.lock
View file @
11e3c3c
This diff is collapsed. Click to expand it.
Please
register
or
login
to post a comment