일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 최적화
- API
- learn next.js
- html5
- This
- github
- developerlife
- ES5+
- array
- react
- object
- 우아한테코톡
- next.js
- JS
- hooks
- es6
- ES6+
- 변수
- 함수
- hatso
- CSS
- JavaScript
- AI
- dev
- git
- Python
- 선택자
- DOM
- gitCLI
- 햇소
Archives
- Today
- Total
목록Dispatch (1)
codinghatso
useReducer - React Hooks
전체적인 틀 AttendanceBook.js import React, { useState, useReducer } from "react"; const reducer = (state, action) => { } const initialState = { } function AttendanceBook(){ const [name, setName] = useState(""); const [] = useReducer(reducer, ); return ( 추가 ) } export default AttendanceBook; 구현 import React, { useState, useReducer } from "react"; import Student from "../components/Student"; //reducer..
WEB/React
2023. 11. 30. 13:01