R202_-_SU_2024_-_Block_5_-_FE_2670.webp
free_spirit

R202_-_SU_2024_-_Block_5_-_FE_2670.webp

Kizspy | Question: 25
(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);

  • Like
Reactions: Quangdung

Thông tin

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

Share this media

Back
Bên trên Bottom