Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2021-1-capstone-design2
/
2017110273
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
sdy
2021-05-13 00:51:01 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c2361c7a63a666ffc92a1d031c30ca020219a9bd
c2361c7a
1 parent
720b2af2
remove unnecessary codes
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
4 deletions
src/App.js
src/App.js
View file @
c2361c7
...
...
@@ -31,9 +31,6 @@ function App() {
if
(
result
!==
null
||
result
!==
undefined
||
result
.
length
!==
0
)
{
setAnswer
(
result
.
hits
.
hits
);
answer
.
forEach
(
e
=>
{
console
.
log
(
e
.
_source
.
정답
);
});
}
}
catch
(
error
)
{
console
.
log
(
error
);
...
...
@@ -45,7 +42,7 @@ function App() {
const
showAnswer
=
(
answer
)
=>
{
return
(
<
div
>
<
b
>
{
answer
.
_source
.
정답
}
<
/b
>
<
b
>
{
answer
!==
undefined
?
answer
.
_source
.
정답
:
'loading ....'
}
<
/b
>
<
/div
>
)
}
...
...
Please
register
or
login
to post a comment