header-img
Info :
728x90
Uncaught Error: Rendered more hooks than during the previous render

์ด์ „ ๋ Œ๋”๋ง์—์„œ ํ˜ธ์ถœ๋œ hooks๋ณด๋‹ค ํ˜„์žฌ ๋ Œ๋”๋ง์—์„œ hooks๊ฐ€ ๋” ๋งŽ์ด ํ˜ธ์ถœ๋œ ๊ฒฐ๊ณผ๋กœ ๋ฐœ์ƒํ•˜๋Š” ์—๋Ÿฌ

 

hooks๋Š” ๋งค ๋ Œ๋”๋ง๋งˆ๋‹ค ๋™์ผํ•œ ํ˜ธ์ถœ์„ ๋ณด์žฅ๋ฐ›์•„์•ผ๋งŒ ํ•จ.

- ์ด๋Ÿฐ ์ด์œ  ๋•Œ๋ฌธ์— hooks๋ฅผ ์กฐ๊ฑด๋ฌธ ์•ˆ์—์„œ ์“ฐ๋Š” ๊ฒƒ์ด ๊ธˆ์ง€๋˜์–ด ์žˆ๊ณ , ์ปดํฌ๋„ŒํŠธ ์ตœ์ƒ์œ„์—์„œ ์‚ฌ์šฉํ•˜๋ผ๊ณ  ๊ถŒ์žฅํ•˜๋Š” ๊ฒƒ.

 

hooks๋Š” ํ•จ์ˆ˜์˜ ์ƒํƒœ๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ ๋™์ž‘๋œ๋‹ค.

 

 

Hook์˜ ๊ทœ์น™ – React

A JavaScript library for building user interfaces

ko.legacy.reactjs.org

์›๋ฆฌ์™€ ๊ด€๋ จ๋œ ์ด์•ผ๊ธฐ.

 

์š”์•ฝ. ๋ฐ˜๋ณต๋ฌธ์ด๋ž‘ html ์•ˆ์—์„œ state ๋ฅผ ๋งŒ๋“ค๋ฉด ์•ˆ๋จ.

728x90
๋”๋ณด๊ธฐ
FRONTEND/React