Sunday, 15 May 2011

reactjs - How can I compare this.props.children with nextprops.children -



reactjs - How can I compare this.props.children with nextprops.children -

in componentwillreceiveprops need compare this.props.children children in nextprops. can iterate on either construction react.children.foreach haven't found sanctioned mechanism index either "opaque" structure.

componentwillreceiveprops isn't called after first render: http://facebook.github.io/react/tips/componentwillreceiveprops-not-triggered-after-mounting.html need other comment says, utilize shouldcomponentupdate.

reactjs

No comments:

Post a Comment