Toggle navigation
Toggle navigation
This project
Loading...
Sign in
이혜연
/
Make_your_own_ chatbot
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hyeyeon-sun
2020-06-04 23:55:47 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2a0748f4b1cf85adc31cb31eed8a3b228fe9f11c
2a0748f4
1 parent
a903efc0
Make Customer component
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
21 deletions
management/src/App.js
management/src/components/Customer.js
management/src/App.js
View file @
2a0748f
import
React
from
'react'
;
import
logo
from
'./logo.svg'
;
import
React
,
{
Component
}
from
'react'
;
import
'./App.css'
;
import
Customer
from
'./components/Customer'
function
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
>
);
const
customer
=
{
'name'
:
'이혜연'
,
'birthday'
:
'000416'
,
'gender'
:
'여자'
,
'job'
:
'대학생'
}
class
App
extends
Component
{
render
()
{
return
(
<
Customer
name
=
{
customer
.
name
}
birthday
=
{
customer
.
birthday
}
gender
=
{
customer
.
gender
}
job
=
{
customer
.
job
}
/
>
);
}
}
export
default
App
;
...
...
management/src/components/Customer.js
0 → 100644
View file @
2a0748f
import
React
from
'react'
;
class
Customer
extends
React
.
Component
{
render
(){
return
(
<
div
>
<
h2
>
{
this
.
props
.
name
}
<
/h2
>
<
p
>
{
this
.
props
.
birthday
}
<
/p
>
<
p
>
{
this
.
props
.
gender
}
<
/p
>
<
p
>
{
this
.
props
.
job
}
<
/p
>
<
/div
>
);
}
}
export
default
Customer
;
\ No newline at end of file
Please
register
or
login
to post a comment