Skip to content
This repository was archived by the owner on Sep 3, 2022. It is now read-only.

Commit 4893b88

Browse files
committed
Added Codepen example of dataStore component.
1 parent 919bfc2 commit 4893b88

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tuts/composi-datastore.html

+8
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,14 @@ <h3>DataStore with Component</h3>
187187

188188
<p>This combination of dataStore with dataStore component enables reactive components with separate dataStore for state management.</p>
189189

190+
<h3>Example of DataStore Component</h3>
191+
<p>Here's a working example of a dataStore and dataStore component. It also has a simple actions object that the component uses to update the dataStore's state:</p>
192+
193+
<p data-height="600" data-theme-id="6688" data-slug-hash="WgrZdW" data-default-tab="js,result" data-user="rbiggs" data-pen-title="DataStore and DataStoreComponent"
194+
class="codepen">See the Pen <a href="https://codepen.io/rbiggs/pen/WgrZdW/">DataStore and DataStoreComponent</a> by Robert
195+
Biggs (<a href="https://codepen.io/rbiggs">@rbiggs</a>) on <a href="https://codepen.io">CodePen</a>.</p>
196+
<script async src="https://static.codepen.io/assets/embed/ei.js"></script>
197+
190198
<p> </p>
191199

192200
<h2>Using the Observer Class</h2>

0 commit comments

Comments
 (0)