반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- mysql broken install
- 안드로이드
- Android
- next.js css framework
- mysql 재설치
- react tailwind css
- mysql fix install
- 리액트 tailwind css
- 리액트
- next.js tailwind css
- react typescript
- 리눅스
- Python
- mysql
- react tailwindcss
- 도커
- mysql uninstall
- next.js tailwindcss
- mysql purge
- Docker ubuntu
- javascript
- PHP
- 리액트 tailwindcss
- mysql error
- Docker
- 리액트 문법
- mysql 삭제
- mysql 재설치 명령어
- react 기초
- react
Archives
- Today
- Total
목록react useReducer (1)
Developer_hong

useState, useReducer 모두 state를 만들고 랜더링한다 useState를 통해서는 단순한 관리, useReducer을 통해서는 체계적인 관리를 할 수 있다 useState로 가능한 부분을 useReducer 사용할 경우 더 복잡해질 수 있기 때문에 적절한 사용이 필요하다 useState 사용을 위해서는 import React, { useState } from "react"; Generics를 통해 해당 상태가 타입형을 가질지 설정 const [state, setState] = useState(1); useReducer 사용을 위해서는 import React, { useReducer } from "react"; const [state, dispatch] = useReducer(reduce..
카테고리 없음
2022. 11. 3. 21:28