mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 04:33:10 +00:00
Add an "oops!" so skimmers don't mistake the bad example for a good one
This commit is contained in:
@@ -52,7 +52,7 @@ static getDerivedStateFromProps(props, state) {
|
||||
return {
|
||||
// Since this method fires on both props and state changes, local updates
|
||||
// to the controlled value will be ignored, since the props version always
|
||||
// overrides it.
|
||||
// overrides it. Oops!
|
||||
controlledValue: props.value,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user