| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 자바 공부
- codesandbox
- vanillaJS
- 프로그래머스 자바
- 자바
- 프로그래머스
- 코딩테스트 고득점 Kit 완전탐색
- 코틀린
- 코딩테스트 고득점 Kit
- JavaScript
- websocket
- react
- NextJS
- react hook
- 데이터모델링과마이닝
- 리액트
- 컴퓨터 네트워크
- useState
- 디자인 패턴
- 자바스크립트
- 백준
- useEffect
- React JS
- Java
- 프로그래머스 완전탐색
- 프로그래밍 언어론
- 장고
- react firebase
- design pattern
- 리액트 훅
Archives
- Today
- Total
목록TypeScript React (1)
기록하는 개발자
1. [react+typescript project 생성] npx create-react-app [프로젝트명] --template typescript 2. 함수형 컴포넌트 작성 방법 - `type Image`와 `interface ListProps`와 같이 컴포넌트의 props 타입을 명시하여 작성한다. 이를 통해 property로 유효하지 않은 값이 전달되면 바로 오류를 확인할 수 있다. import React from "react"; type Image = { src: string; }; interface ListProps { header: string; content: string; image?: Image; } const List = ({ header, content, image }: ListPr..
Web/TypeScript
2022. 2. 16. 20:11