这就是100 days of code的原因
github.com/li000592/100daysOfCode/tree/day1
Redux:
@reduxjs/toolkit
- configureStore(object) Link
object = {
reducer:{
counter: counterReducer(createSlice),
}
}
- createSlice() Link
counterReduce = createSlice({
name: 'counter',(?)
initialState: {value:0}
reducers:{}
})