스토리북을 사용할 디렉토리로 이동후
npx -p @storybook/cli sb init --type react_native
위 명령어로 스토리북을 설치한다. 그러면 스토리북 폴더가 생성이 되고 Package.json에 storybook 관련 scripts가 생성된다.
실행은
yarn storybook
// 이나
npm run storybook
으로 실행하면 된다.
'Lecture' 카테고리의 다른 글
Must use destructuring props assignment react/destructuring-assignment (0) | 2022.03.11 |
---|---|
0307 ICT 블록체인 (0) | 2022.03.10 |
m1 MOS Npm Publish (0) | 2021.11.24 |
M1 MongoDB 설치, 계정생성, mongoose connect (0) | 2021.11.18 |
맥북 m1 에서 docker 설치 및 사용 (0) | 2021.11.02 |