“React Native”的版本间的差异
来自tomtalk
(创建页面,内容为“== dev menu button form dev menu== Command + M in OSX. Ctrl + M in Linux and Windows.”) |
(→dev menu button form dev menu) |
||
| 第4行: | 第4行: | ||
Ctrl + M in Linux and Windows. | Ctrl + M in Linux and Windows. | ||
| + | |||
| + | ==什么是componentWillReceiveProps?== | ||
| + | |||
| + | componentWillReceiveProps在初始化render的时候不会执行,它会在Component接受到新的状态(Props)时被触发,一般用于父组件状态更新时子组件的重新渲染。 | ||
2019年7月17日 (三) 07:36的版本
Command + M in OSX.
Ctrl + M in Linux and Windows.
什么是componentWillReceiveProps?
componentWillReceiveProps在初始化render的时候不会执行,它会在Component接受到新的状态(Props)时被触发,一般用于父组件状态更新时子组件的重新渲染。