mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +00:00
9 lines
166 B
JavaScript
9 lines
166 B
JavaScript
// After
|
|
class ExampleComponent extends React.Component {
|
|
// highlight-range{1-4}
|
|
state = {
|
|
currentColor: this.props.defaultColor,
|
|
palette: 'rgb',
|
|
};
|
|
}
|