no message

This commit is contained in:
macbook
2024-04-27 21:35:26 +08:00
parent 9d8830a9ac
commit e116f50c8e
2 changed files with 8 additions and 3 deletions
+3 -2
View File
@@ -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>
);
}
+5 -1
View File
@@ -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();