Files
react.dev/content/home/examples/a-stateful-component.md
Brian Vaughn f5aaf4c1b4 Moved home page example code to /content/home
Now examples are trasnformed to GraphQL during build and assembled by the index template. This makes them easier to edit and tie in with their associated markdown description.
2017-11-06 13:01:13 +00:00

284 B

title, order
title order
A Stateful Component 1

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().