본문 바로가기

전체 글108

yarn create next-app --typescript , antd * yarn 명령어로 next app생성 * yarn 명령어로 antd 추가하기 % yarn create next-app --typescript 프로젝트 이름 입력 해당 폴더로 이동 % yarn add antd 시작할때는 % yarn dev 2022. 7. 7.
Typescript + Router Typescript npm install --save typescript @types/node @types/react @types/react-dom @types/jest https://create-react-app.dev/docs/adding-typescript Router npm install --save react-router-dom https://create-react-app.dev/docs/adding-a-router 2022. 7. 5.
Create a New React App 가이드를 따라서 리엑트 앱을 만들어 보기로 한다. 아래와 같이 명령어를 입력한다. npx create-react-app pish_react terin@terinui-Macmini GitHub % npx create-react-app pish_react Need to install the following packages: create-react-app Ok to proceed? (y) y npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap. Creating a new React app in /Users/terin/Doc.. 2022. 7. 5.
Predicate in stream * Predicate example * HashMap stream example * filter, collect 아래 처럼 사용을 할 수 있다. 파라미터로 넘기지 않은 employee가 어떻게 읽혀 지는지 모르겠다. public List search(String value, String fieldOption, String compareOption, HashMap employees) { return employees.values().stream() .filter(getEmployeeByOption(value, fieldOption, compareOption)) .collect(Collectors.toList()); } protected Predicate getEmployeeByOption(String va.. 2022. 7. 1.