範例樣式樣式化組件樣式化組件在這個範例中,我們使用 styled components 來展示如何實作黑暗和明亮模式。index.htmlApp.tsxexport default function App() { const data: string = "world" return <h1>Hello {data}</h1> } 唯讀在 Stackblitz 中開啟在 Codesandbox 中開啟情境選單