Skip to main content
100%

Counter

✓ Published0🌍 Public
CCurran Kelleher
Last edited Mar 25, 2017
Created on Mar 4, 2017

A counter app shows a large numeric count that increases or decreases via two buttons, styled with large typography and a simple layout. It demonstrates the d3-component library for defining reusable components like `countDisplay`, `buttonPanel`, and `button`, while managing state with Redux. The top-level `app` component composes these pieces, and renders update on store subscriptions. The example bridges D3 v4's component pattern with Redux's reducer and dispatch flow.

AI-generated description

A counter app that demonstrates usage of d3-component. Inspired by Redux Counter Example.

The following components are defined and used to construct the app:

  • app <br>The top-level app component. <br><br>
  • buttonPanel <br>The panel that contains the two buttons. This shows a simple composition pattern in which props are passed through to child components. <br><br>
  • button <br> A generic Button component. <br><br>
  • countDisplay <br> A display of the current count.

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/curran/'>curran</a>'s block: <a href='http://bl.ocks.org/curran/593ffae30c42789a9af36f08c983867e'>Stopwatch</a>

<!-- Start of SimpleHitCounter Code --> <div align="center"><img src="http://simplehitcounter.com/hit.php?uid=2238970&f=16777215&b=0" border="0" height="18" width="83"></a><br></div> <!-- End of SimpleHitCounter Code -->
mit Licensed

Similar vizzes