🌳Frontend/react

설치 yarn add -D jest yarn add -D @types/jest jest 설정파일 추가 jest --init ✔ Would you like to use Typescript for the configuration file? … 타입스크립트 파일로 설정할까? 난 no ✔ Choose the test environment that will be used for testing › 어떤 환경에서 test 돌릴거니? 난 node ✔ Do you want Jest to add coverage reports? … 커버리지 기능을 사용할거니 ? yes ✔ Which provider should be used to instrument code for coverage? › 본인은 babel ✔ Automati..
yarn create next-app --typescript What is your project named? 프로젝트 이름을 입력하세요 ✔ Would you like to use ESLint with this project? … No / Yes EsLint 설정을 할 것인지 ✔ Would you like to use `src/` directory with this project? … No / Yes src 디렉토리를 사용할 것인지 ✔ Would you like to use experimental `app/` directory with this project? … No / Yes app 디렉토리를 사용할 것인지 ✔ What import alias would you like configured? 절대경로를..
해당 게시글은 아래 아티클을 읽고 정리하였습니다. https://github.com/yeonjuan/dev-blog/blob/master/JavaScript/should-you-really-use-usememo.md GitHub - yeonjuan/dev-blog: 개발 블로그, 공부한거 정리 개발 블로그, 공부한거 정리. Contribute to yeonjuan/dev-blog development by creating an account on GitHub. github.com 1. useMemo 리액트에서 제공하는 hook 중 하나. 리액트 공식문서에 useMemo 의 설명을 보면, 개발자가 정한 dependcies 가 변경되면 로직을 실행하고 리턴되는 값을 캐시한다. Returns a memoiz..
Bㅐ추
'🌳Frontend/react' 카테고리의 글 목록 (9 Page)