This example demonstrates basic usage of d3-component. Three components are created:
heading
Renders an <h1>
element and sets its text.paragraph
Renders a <p>
element and sets its text.post
Renders a <div>
element with a class of "post"
, and composes the heading
and post
components.Built with blockbuilder.org
https://unpkg.com/d3@4
https://unpkg.com/d3-component@3