Files
react.dev/content/home/examples/a-stateful-component.md
2019-01-02 19:07:45 +00:00

8 lines
305 B
Markdown

---
title: A Stateful Component
order: 1
domid: timer-example
---
In addition to taking input data (accessed via `this.props`), a component can maintain internal state data (accessed via `this.state`). When a component's state data changes, the rendered markup will be updated by re-invoking `render()`.