From e116f50c8e9543cfa402e9569856adc9e5da798e Mon Sep 17 00:00:00 2001 From: macbook Date: Sat, 27 Apr 2024 21:35:26 +0800 Subject: [PATCH] no message --- redux/redux-reactRedux/src/App.js | 5 +++-- redux/redux-reactRedux/src/index.js | 6 +++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/redux/redux-reactRedux/src/App.js b/redux/redux-reactRedux/src/App.js index faab84f74..aa69d90b4 100644 --- a/redux/redux-reactRedux/src/App.js +++ b/redux/redux-reactRedux/src/App.js @@ -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 (
- + + {/* */}
); } diff --git a/redux/redux-reactRedux/src/index.js b/redux/redux-reactRedux/src/index.js index b000d0309..4ebdd48b9 100644 --- a/redux/redux-reactRedux/src/index.js +++ b/redux/redux-reactRedux/src/index.js @@ -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( - + + + ); reportWebVitals();