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: tuts/composi-datastore.html
+8
Original file line number
Diff line number
Diff line change
@@ -187,6 +187,14 @@ <h3>DataStore with Component</h3>
187
187
188
188
<p>This combination of dataStore with dataStore component enables reactive components with separate dataStore for state management.</p>
189
189
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
+
<pdata-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 <ahref="https://codepen.io/rbiggs/pen/WgrZdW/">DataStore and DataStoreComponent</a> by Robert
195
+
Biggs (<ahref="https://codepen.io/rbiggs">@rbiggs</a>) on <ahref="https://codepen.io">CodePen</a>.</p>
0 commit comments