avatar

Page 60

  • Published on
    ### ๐Ÿšง์ž‘์„ฑ์ค‘ ๐Ÿšง [์›๋ฌธ-How Browsers Work: Behind the scenes of modern web browsers](https://www.html5rocks.com/en/tutorials/internals/howbrowserswork/) > ์ด ๊ธ€์„ ์š”์•ฝ/๋ฒˆ์—ญํ•œ ๋” ์ข‹์€ ๊ธ€์ด [๋„ค์ด๋ฒ„ d2](https://d2.naver.com/...
  • Published on
    [github repository](https://github.com/yceffort/koa-nextjs-react-typescript-boilerplate) nextjs์™€ react ๋งŒ ๊น”๋”ํ•˜๊ฒŒ ์“ฐ๊ณ  ์‹ถ์ง€๋งŒ, ๊ทธ๋Ÿฌ๊ธฐ์—” ํ˜„์‹ค์ ์ธ ๋ฌธ์ œ๊ฐ€ ๋ช‡๊ฐ€์ง€ ์žˆ๋‹ค ...
  • Published on
    ### useReducer ```javascript const [state, dispatch] = useReducer(reducer, initialArg, init); ``` `useState`์˜ ๋Œ€์ฒด ํ•จ์ˆ˜๋‹ค. ๋‹ค์ˆ˜์˜ ํ•˜์œ— ๊ฐ’์„ ๋งŒ๋“œ๋Š” ๋ณต์žกํ•œ ๋กœ์ง, ํ˜น์€ ๋‹ค์Œ state๊ฐ€ ์ด์ „ state์˜ ์˜์กด์ ์ธ ๊ฒฝ์šฐ์— ์“ด๋‹ค. ๋ญ๊ฐ€ ๋ญ”์ง€ ๋ชจ๋ฅด๊ฒ ์œผ๋‹ˆ๊นŒ ์˜ˆ์ œ๋ฅผ ๋ณด์ž. ...
  • Published on
    # Hooks API Hook์€ react 16.8์—์„œ ์ถ”๊ฐ€๋œ ๊ฐœ๋…์œผ๋กœ, Hook์„ ์‹œ์šฉํ•˜๋ฉด class๋ฅผ ๊ฐ–์„ฑํ•˜์ง€ ์•Š์•„๋„ state๊ด€๋ฆฌ์™€ ๊ฐ™์€ react์˜ ๊ธฐ๋Šฅ์„ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋‹ค. ## ๊ธฐ๋ณธ Hook ### useState ```javascript const [state, setState] = useState(initialState); setStat...