sdy

remove unnecessary codes

......@@ -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>
)
}
......