1.redux is a reference type, you can directly modify the store.getState (). Xxx.xxx=? Modify it directly;
let state1 = {person: {name:"ss"}}
function reduce(state = state1, action) {
return {...state}
}
const store = Redux.createStore(reduce)
console.log(store.getState()) // lisi
let tempState = store.getState()
tempState.person.name="lisi"
console.log(store.getState()) // lisi
question: official documents make it clear that status can only be modified through action. Is it because state management uses incorrect scenarios? Ask for help.