๊ฒ์ ๊ธฐ๋ฅ ๊ตฌํ #21
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
๊ฐ์
input์ ํ ์คํธ๋ฅผ ์ ๋ ฅํ๋ฉด ๊ฒ์ ๊ธฐ๋ฅ์ ํตํด ์๋์ ์ ํ๊ฐ๋ฅํ ๋ฌธ์ ํญ๋ชฉ์ด ์ถ๋ ฅ๋ฉ๋๋ค!

์ฃผ์ ๊ตฌํ ์ฌํญ
1. ํด์ค ๋ชฉ๋ก ๊ด๋ฆฌ๋ฅผ ์ํ
solutionListState
์ ์ญ์ํ ์ถ๊ฐํด๋น ์ ์ญ ์ํ๋ ๋ก์ปฌ์คํ ๋ฆฌ์ง์ ๊ด๋ฆฌ๋ฉ๋๋ค.
2.
useFetchsolutionList
ํ ๋ก์งํด๋น ํ ์
src/hooks/solutionList
์ ์์ผ๋ฉฐ ๋ก์ง์00-ํด๋ต-์์.js
๋ฅผ ์ ์ธํ ํด์ค๋ค์์name, level
๋ง ๋นผ๋ด์ด solutionList์ ์ ์ฅํ๋ค. (๋ ๋ง์ ๋ฐ์ดํฐ๊ฐ ํ์ํด์ง๋ฉด ์ด๊ณณ์์ ๊ฐ์ ์ถ๊ฐํ๋ฉด ๋ ๊ฒ ์ ๋๋ค.)์ ๋๋ค.
3. QuestionInputAndList ์ปดํฌ๋ํธ ํ
@chaerin-dev ์ด ๋ถ๋ถ ์ค์ ์ ์ผ๋ก ๋ด์ฃผ์ธ์! ์ฐ์ ๋ก์ง์
handleQuestionNameInput
๊ฐ ์คํ๋๊ณ , solutionList ๋ฅผ ์ ๊ทํํ์(ํ๊ธ๊ฒ์)์ ํตํด filtering ํ questionList๋ฅผ ์์ ํ๋ค.QuestionBtn
๋ค์data-value
๋กname
์ ๊ฐ์ง๋ฉฐ, ํด๋ฆญ ์questionName
์ํ๋ฅผ ํด๋นname
์ผ๋ก ๋ณํ์ํจ๋ค.์ ๋๋ค.
ํด๋น ์ปดํฌ๋ํธ์๋
onQuestionNameChange
๋ผ๋ props ๊ฐ ์์ผ๋ฉฐ, ์ด ๋ฅผ ํตํด ํ์ด์ง์์ ์ปดํฌ๋ํธ์questionName
๊ฐ์ ๋ฐ์์ฌ ์ ์์ต๋๋ค.์ฌ์ฉ์์
ํด๊ฒฐํด์ผํ ๋ฌธ์