๋ณธ๋ฌธ์œผ๋กœ ๊ฑด๋„ˆ๋›ฐ๊ธฐ

201204

ยท ์•ฝ 2๋ถ„

Say Hello to Storybook#

๋ฆฌ์•กํŠธ ์ปดํฌ๋„ŒํŠธ ํŠธ๋ฆฌ#

  - Pure Components
  ![2020-12-04-201204-image-0](./images/2020-12-04-201204-image-0.png)


  - Container - Presenter ํŒจํ„ด
  ![2020-12-04-201204-image-1](./images/2020-12-04-201204-image-1.png)




  - Redux
  ![2020-12-04-201204-image-2](./images/2020-12-04-201204-image-2.png)


  - MobX
  ![2020-12-04-201204-image-3](./images/2020-12-04-201204-image-3.png)

๋ทฐ๊ฐ€ ๊นŠ์ˆ™ํžˆ ์ˆจ์–ด ์žˆ๋Š” ๊ฒฝ์šฐ#

  • ๊นŠ์€ ํŠธ๋ฆฌ, nullable, ๋ผ์šฐํŒ… ๋“ฑ์œผ๋กœ ์ธํ•ด ํ•˜๋‚˜์˜ ์ปดํฌ๋„ŒํŠธ๋ฅผ ์ˆ˜์ •ํ•˜๊ธฐ ์œ„ํ•ด ๋“ค์—ฌ์•ผํ•˜๋Š” ๋…ธ๋ ฅ์ด ๋„ˆ๋ฌด ํฌ๋‹ค.

2020-12-04-201204-image-4

์Šคํ† ๋ฆฌ๋ถ์ด ํ•˜๋Š” ์—ญํ• #

์Šคํ† ๋ฆฌ๋ถ์€ UI์ปดํฌ๋„ŒํŠธ๋ฅผ ์œ„ํ•œ ๊ฐ„๋‹จํ•œ scaffolder์ด์ž UI ํ…Œ์ŠคํŒ… ํˆด์ด๋‹ค.

๊ฐ์ข… ๋ผ์šฐํŒ…๊ณผ state๋“ค๋กœ ์—ฐ๊ฒฐ์ด ๋˜์–ด์žˆ๋Š” React ๋ทฐ ์ปดํฌ๋„ŒํŠธ๋“ค์„ nomalize ์‹œ์ผœ isolate ์‹œ์ผœ ๋…๋ฆฝ์  ํ™˜๊ฒฝ์—์„œ ๋Œ์•„๊ฐˆ ์ˆ˜ ์žˆ๋„๋ก ํ•ด์ฃผ๋Š” UI scaffolding ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์ด๋‹ค.

  ![2020-12-04-201204-image-5](./images/2020-12-04-201204-image-5.png)


  ![2020-12-04-201204-image-6](./images/2020-12-04-201204-image-6.png)


  ![2020-12-04-201204-image-7](./images/2020-12-04-201204-image-7.png)
  • ์ž์ฒด ์›นํŒฉ์ด ์žˆ์–ด์„œ ํ•ซ ๋ฆฌ๋กœ๋”ฉ ์ง€์›

  • ๋””์ž์ด๋„ˆ์™€ ๊ฐœ๋ฐœ์ž, PM์„ ์—ฐ๊ฒฐ์‹œ์ผœ์ฃผ๋Š” ํ•˜๋‚˜์˜ ํˆด์ด๋‹ค.

์Šคํ† ๋ฆฌ๋ถ์€ ์•ฑ ๋ฐ–์—์„œ ๋”ฐ๋กœ ๋ˆ๋‹ค#

addons#

  • actions : ์ด๋ฒคํŠธ ์‹œ ๋กœ๊ทธ๋ฅผ ์ฐ์–ด์คŒ

  • links : ์Šคํ† ๋ฆฌ์—์„œ ๋‹ค๋ฅธ ์Šคํ† ๋ฆฌ๋กœ ์ด๋™

  • knobs : ๋™์ ์œผ๋กœ ์ƒํƒœ ๋ณ€๊ฒฝ

  • console : ์ฝ˜์†” ์ฐ์–ด์คŒ

  • notes : ๋‹ค๋ฅธ ์‚ฌ๋žŒ์—๊ฒŒ ๋…ธํŠธ๋ฅผ ๋ณด์—ฌ์ค„ ์ˆ˜ ์žˆ๋‹ค.

์„œ๋“œ ํŒŒํ‹ฐ#

  • backgrounds

  • chapters