Jump to Categories

Redux

"A JavaScript framework that manages application state in a scalable, predictable and testable way"
<h2>Component Hierarchy</h2>
<p><strong>Representational</strong><br />
Type of component that's concerned with how things look. Renders just like any other React component and doesn't care if Redux used at all.</p>
<p><strong>Container</strong><br />
Concerned with how things work. It interacts with and receives data from the object storing state. Role is to pass data and behavior down to the representational components which then renders.</p>
<h2>Representational categories</h2>
<p><strong>Logical</strong></p>
<ul>
<li>React component</li>
<li>Manages own state</li>
<li>May take place in React lifecycle</li>
</ul>
<p><strong>Pure</strong></p>
<ul>
<li>Stateless, do not manage own state</li>
<li>Rely on Props</li>
<li>Pure functions (<span class="_Tgc">where the return value is only determined by its input values, without observable side effects</span>)</li>
<li>Don't take place in React Lifecycle</li>
</ul>