--- tags: example title: "A Stateful Component" source: - "examples/counter/src/counter.js" class: counter-example layout: layouts/example.njk date: 2019-04-02 ---

In addition to taking input data (accessed via props), a component can maintain internal state data (accessed via observables o). When a component’s state data changes, the rendered markup will be updated by re-invoking the stored DOM operations.