no message
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import './App.css';
|
||||
import Count from './containers/count';
|
||||
import store from './redux/store';
|
||||
// import store from './redux/store';
|
||||
function App() {
|
||||
return (
|
||||
<div className="App">
|
||||
<Count store={store}/>
|
||||
<Count/>
|
||||
{/* <Count store={store}/> */}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -2,11 +2,15 @@ import React from 'react';
|
||||
import ReactDOM from 'react-dom/client';
|
||||
import './index.css';
|
||||
import App from './App';
|
||||
import store from './redux/store';
|
||||
import { Provider } from 'react-redux';
|
||||
import reportWebVitals from './reportWebVitals';
|
||||
const root = ReactDOM.createRoot(document.getElementById('root'));
|
||||
root.render(
|
||||
<React.StrictMode>
|
||||
<App />
|
||||
<Provider store={store}>
|
||||
<App />
|
||||
</Provider>
|
||||
</React.StrictMode>
|
||||
);
|
||||
reportWebVitals();
|
||||
|
||||
Reference in New Issue
Block a user