CodelabDocs
Getting started

Build your first page

One page, one value, one action.

Structure

Create an app and page. Add a text element and a button.

State

Create a store named counter. Add a Number field named count, with a default of 0.

Bind the text to {{stores.counter.count}}.

Behavior

Create an action that sets count to {{stores.counter.count + 1}}. Bind the button's onClick to that action.

Preview

Click the button. The value increases; the text updates.

Continue with Structure, State, and Behavior.

On this page