Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
butter-studio
Commits
334b7fb2
Commit
334b7fb2
authored
Jul 07, 2021
by
한규민
Browse files
주석달음
parent
252c5369
Changes
2
Hide whitespace changes
Inline
Side-by-side
client/src/components/Login/Login.js
View file @
334b7fb2
...
@@ -4,6 +4,7 @@ import styles from "./login.module.scss";
...
@@ -4,6 +4,7 @@ import styles from "./login.module.scss";
const
Login
=
()
=>
{
const
Login
=
()
=>
{
//useState를 이용해서 각 state 생성 및 초기값 저장
//useState를 이용해서 각 state 생성 및 초기값 저장
const
[
state
,
setState
]
=
useState
(
true
);
// 이 줄은 css에 해당하는 state
const
[
state
,
setState
]
=
useState
(
true
);
// 이 줄은 css에 해당하는 state
//state변수 지정 하지만 이 변수는 react에 의해 없어지지 않음, 그리고 그 다음 변수는 state변수를 갱신해주는 함수
const
[
loginText
,
setLoginText
]
=
useState
({
const
[
loginText
,
setLoginText
]
=
useState
({
id
:
''
,
id
:
''
,
password
:
''
password
:
''
...
@@ -34,6 +35,8 @@ const Login = () => {
...
@@ -34,6 +35,8 @@ const Login = () => {
return
(
return
(
<
div
className
=
{
`d-flex flex-column col-md-5 col-10`
}
>
<
div
className
=
{
`d-flex flex-column col-md-5 col-10`
}
>
{
/* nav-tabs */
}
{
/* nav-tabs */
}
{
/* {console.log(loginText)} */
}
{
console
.
log
(
guestText
)}
<
ul
className
=
"
nav nav-fill nav-tabs w-100
"
id
=
"
loginTab
"
role
=
"
tablist
"
>
<
ul
className
=
"
nav nav-fill nav-tabs w-100
"
id
=
"
loginTab
"
role
=
"
tablist
"
>
<
li
className
=
"
nav-item fs-6
"
role
=
"
presentation
"
>
<
li
className
=
"
nav-item fs-6
"
role
=
"
presentation
"
>
<
button
className
=
{
`nav-link active px-2
${
styles
.
fontSize
}
`
}
style
=
{{
color
:
state
?
"
black
"
:
"
#FEDC00
"
,
backgroundColor
:
state
?
"
#FEDC00
"
:
"
black
"
}}
<
button
className
=
{
`nav-link active px-2
${
styles
.
fontSize
}
`
}
style
=
{{
color
:
state
?
"
black
"
:
"
#FEDC00
"
,
backgroundColor
:
state
?
"
#FEDC00
"
:
"
black
"
}}
...
...
client/src/components/Signup/Signup.js
View file @
334b7fb2
...
@@ -5,8 +5,8 @@ const Signup = () => {
...
@@ -5,8 +5,8 @@ const Signup = () => {
const
[
userText
,
setUserState
]
=
useState
({
const
[
userText
,
setUserState
]
=
useState
({
userName
:
''
,
userName
:
''
,
userBirthday
:
0
,
userBirthday
:
''
,
userMbnum
:
0
,
userMbnum
:
''
,
userPassword
:
''
,
userPassword
:
''
,
userRePassword
:
''
userRePassword
:
''
})
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment