1
This commit is contained in:
yinjun.chen1
2024-06-19 18:04:19 +08:00
parent 1debc18e54
commit 74876b8c73
2 changed files with 3 additions and 1 deletions
@@ -25,6 +25,7 @@ class Count extends Component{
return(
<div>
<h1>当前求和为:{this.props.state.count}</h1>
<h1>当前求和为:{this.props.state.count1}</h1>
<select name="" id="" ref={c=>this.selectNumber=c}>
<option value="1">1</option>
<option value="2">2</option>
@@ -8,7 +8,8 @@ import { configureStore } from "@reduxjs/toolkit"
import countReducer from './count_reducer'
const store=configureStore({
reducer:{
count:countReducer
count:countReducer,
count1:countReducer
}
})
export default store;