在 Foo 组件中,使用 useContext API 可以获取到传入的 context 值. Foo.js import React, { useContext } from 'react'; import { ThemeContext } ...
確定! 回上一頁