sevenLee
5/16/2016 - 7:17 AM

iframe get state issue - AnotherView.jsx

iframe get state issue - AnotherView.jsx

class AnotherView extends Component {
      render() {
        const { text, uid } = this.props.infos;
        //console.log('AnotherView theme:', text);
        //console.log('AnotherView uid:', uid);
        return (
          <div>
            <div >Another View</div>
            <div>
              {text}
            </div>
            <div>{uid}</div>
          </div>
        );
      }
    }

    export default connect(
      (state) => {
        console.log('another view trigger state:', state);
        return {
          infos: state.infos
        }
      }
    )(AnotherView);