This document focuses on React, but the same applies to Inferno and Preact
separating presentational and container components, plus
viewshould be separated. In React, your state is typically passed into your view as props.
Counter, we use
withEffectsto create an enhanced version of the component:
CounterWithEffectscomponent now includes the side-effect logic included in our
aperture, and renders the original
Counterpresentational component unaltered. It can be used just like any other component: