redux 加入
This commit is contained in:
15
src/main.tsx
15
src/main.tsx
@@ -1,10 +1,15 @@
|
||||
import {StrictMode} from 'react';
|
||||
import {createRoot} from 'react-dom/client';
|
||||
import { StrictMode } from 'react';
|
||||
import { createRoot } from 'react-dom/client';
|
||||
import App from './App.tsx';
|
||||
import { Provider } from 'react-redux';
|
||||
import { store } from './store';
|
||||
import './index.css';
|
||||
|
||||
createRoot(document.getElementById('root')!).render(
|
||||
<StrictMode>
|
||||
<App />
|
||||
</StrictMode>,
|
||||
<Provider store={store}>
|
||||
<StrictMode>
|
||||
<App />
|
||||
</StrictMode>,
|
||||
</Provider>
|
||||
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user