那麼夾在兩者中間的元件就會多了很多次不必要的傳遞。 const App: React.FC = props => { const [fontColor, setFontColor] = useState('#000000'); ...
確定! 回上一頁