数据深层传递
ReactDOM.createRoot(document.getElementById('root')!).render(
<ThemeProvider>
<ThemeContext.Consumer>
{({ theme }) => (
<ConfigProvider
theme={{
algorithm: [theme]
}}
>
<App></App>
</ConfigProvider>
)}
</ThemeContext.Consumer>
</ThemeProvider>
)