已经解决了,在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 (
....
10 回答11.7k 阅读
2 回答3.2k 阅读✓ 已解决
4 回答2.2k 阅读✓ 已解决
3 回答1.2k 阅读✓ 已解决
1 回答1.8k 阅读✓ 已解决
3 回答839 阅读✓ 已解决
3 回答1k 阅读✓ 已解决
你已经用了
redux
了,为什么还要这么麻烦。你把要传递给子组件的状态放在store
上传递下去,子组件就会自动根据数据进行渲染了。state
在组件控制自己本身的状态的时候再使用。