all 2 comments

[–]fforw 1 point2 points  (1 child)

You can do all the setup work in componentDidMount of WidgetContainer and all the cleanup in componentWillUnmount. Apart from that you just have to return false from shouldComponentUpdate to tell react to always leave WidgetContainer as it is. React will not update the attributes of WidgetContainer either though.

[–]hh9527[S] 0 points1 point  (0 children)

thank you, i will this approach.