R202_-_SU_2024_-_Block_5_-_FE_2670.webp
free_spirit

R202_-_SU_2024_-_Block_5_-_FE_2670.webp

Kizspy | Question: 23
(Choose 1 answer)
How would you use the useState Hook to manage a counter in a React component?
A. const [count, setCount] = useState(0);
B. const count = useState(0);
C. const count = useState(0)[0];
D. const [count, setCount] = useState();

Thông tin

Category
FER202
Thêm bởi
free_spirit
Ngày thêm
Lượt xem
2,159
Lượt bình luận
17
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom