已经解决了,在render里this.props.可以获取到
render() {
const continueVisible = this.props.continueVisible;
return (
...
已经解决了,在render里this.props.可以获取到
render() {
const continueVisible = this.props.continueVisible;
return (
...
已经解决了,在render里直接this.props可以获得
render() {
const continueVisible = this.props.continueVisible;
return (
....
13 回答12.8k 阅读
7 回答1.9k 阅读
3 回答1.1k 阅读✓ 已解决
2 回答1.2k 阅读✓ 已解决
6 回答897 阅读✓ 已解决
4 回答1.6k 阅读
6 回答1.1k 阅读
你已经用了
redux
了,为什么还要这么麻烦。你把要传递给子组件的状态放在store
上传递下去,子组件就会自动根据数据进行渲染了。state
在组件控制自己本身的状态的时候再使用。