Context ช่วยให้คุณแชร์ค่าหนึ่งกับ subtree ทั้งหมด โดยไม่ต้องส่ง props ผ่านทุกระดับ (prop drilling) คุณสร้าง context, ห่อ subtree ในสาขา Provider ของมัน และ descendant ใดๆ อ่านมันด้วย useContext
jsx
= ();
() {
(
);
}
() {
theme = ();
;
}
