functional programming
the tricky functional programming is to make sure that you're not changint anything the outside of the world!
实验:this.setState(old => {
old.name = "123";
return old;
})
the tricky functional programming is to make sure that you're not changint anything the outside of the world!
实验:this.setState(old => {
old.name = "123";
return old;
})