R202_-_SU_2024_-_FE_2268.webp
I

R202_-_SU_2024_-_FE_2268.webp

  • Media owner Ino2004
  • Ngày thêm
Kizspy | Question: 27
(Choose 1 answer)
How would you use the useContext Hook to access a shared theme in a React component?
A. const theme = useContext(ThemeContext);
B. const {theme} = useContext(ThemeContext);
C. const {theme} = useContext(ThemeContext.Provider);
D. const theme = useContext(ThemeContext.Provider);

Thông tin

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

Share this media

Back
Bên trên Bottom