Recent Posts
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 | 29 | 30 | 31 |
Tags
- Meta Learning
- Vision
- nlp
- CV
- FGVC
- FineGrained
- Torch
- pytorch
- math
- algorithm
- cs
- nerf
- 알고리즘
- 3d
- Front
- classification
- ML
- clean code
- PRML
- GAN
- computervision
- 자료구조
- SSL
- Python
- Depth estimation
- 머신러닝
- 딥러닝
- web
- REACT
- dl
- Today
- Total
목록useState (1)
KalelPark's LAB

useState, Input - useState 라이브러리는 상태관리를 할 때 사용됩니다. const [number, setNumber] = useState(0); { setNumber(prevNumber => prevNumber + 1); } const onDecrease = () => { setNumber(prevNumber => prevNumber - 1); } return( {number} +1 { setText(e.target.value); }; const onReset = () => { setText(""); }; return( 초기화 값: {text} ); } export default InputSample; React 상태에서는 객체를 수정할 때, inputs[name] = value; 대..
Study/React
2023. 3. 19. 17:45