this.props 传递的值是引用至上层的,如果直接更改,其实也是更改了上层的数据,需要避免,要不然会发生一些很奇怪的意外情况;
Created
July 21, 2018 12:47
-
-
Save iinsta/c875aac5ef917468785322cca83da148 to your computer and use it in GitHub Desktop.
react 实践小坑
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment