by nemothekid · 11y ago · 0 comments
Edit: Turns out my render methods aren't pure. I query stores right render, which causes problems when using this mixin.
This keeps your child components pure (fast, renders directly from props, uses PureRenderMixin) and keeps data access centralised to the nearest common controller-view component. It's okay to have a parent component that simply collects data to pass directly into a single child within the render() call — the parent fetches data and sets props, the child re-renders only when the props update, and there's a clear separation of responsibility between the two.
http://facebook.github.io/react/docs/advanced-performance.ht... has the best description of this process I've found so far.