You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 3, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: index.html
+20-2
Original file line number
Diff line number
Diff line change
@@ -109,7 +109,7 @@ <h3>A Stateful Component</h2>
109
109
</section>
110
110
<section>
111
111
<divclass="main__example--column">
112
-
<h3>A Todo List</h2>
112
+
<h3>A Todo List</h3>
113
113
<p>Here we put together a todo list. We give the component state and pass down that state to child components as props in curly braces.</p>
114
114
<p>Inline events handle user interactions. All todos are saved to localStorage. On reloads, the saved items are used.</p>
115
115
<p>This is available on Github for <ahref='https://github.com/composor/todo-list' target='__blank'>download</a>.</p>
@@ -137,14 +137,32 @@ <h3>An Image Browser with Popup</h3>
137
137
</section>
138
138
<section>
139
139
<divclass="main__example--column">
140
-
<h3>SVG Animation</h2>
140
+
<h3>SVG Animation</h3>
141
141
<p>Here we're using <atarget="__blank" href="https://d3js.org">D3</a> to animate a Pythagoras tree using Composi's virtual DOM to update the SVG in real time. Move the cursor over the panel, or move your finger on mobile devices. As you do so, upto 2,000 rectanges will be created and destroyed based on the cursor position. This shows how efficient Composi's virtual DOM is.</p>
142
142
<p>You can use many third-party libraries and frameworks with Composi, such a Redux, Mobx, RxJS, Lodash, Bootstrap, Material Design Lite, etc.</p>
143
143
<p>This is available on Github for <ahref='https://github.com/composor/pythagoras-dancing-tree' target='__blank'>download</a>.</p>
144
144
</div>
145
145
<pdata-height="500" data-theme-id="6688" data-slug-hash="EbovjJ" data-default-tab="result" data-user="rbiggs" data-embed-version="2" data-pen-title="Composi with D3" class="codepen">See the Pen <ahref="https://codepen.io/rbiggs/pen/EbovjJ/">Composi with D3</a> by Robert Biggs (<ahref="https://codepen.io/rbiggs">@rbiggs</a>) on <ahref="https://codepen.io">CodePen</a>.</p>
<p>This is a single stateful component that generates keyed couters. This is similar to how the todo app is implemented above. Each counter occupies a keyed list item. This makes it more efficient for deleting random counters from the list.</p>
154
+
<p>Each counter has the events and functionality it needs to act like an independent component. In reality they are just part of a larger, all-encomposing component.</p>
155
+
<p>We're also using the <code>Fragment</code> tag to generate a group of sibling elements--the buttons that constitute the counter.</p>
0 commit comments