mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-26 18:58:17 +00:00
8 lines
305 B
Markdown
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()`.
|