mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +00:00
11 lines
180 B
JavaScript
11 lines
180 B
JavaScript
// After
|
|
class ExampleComponent extends React.Component {
|
|
// highlight-range{1-6}
|
|
state = {
|
|
count: 0,
|
|
derivedValue: computeDerivedValue(
|
|
this.props
|
|
),
|
|
};
|
|
}
|