1
1
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user