(props)
| 336 | } |
| 337 | |
| 338 | function Child(props) { |
| 339 | let [value, setValue] = useControlledState(props.value, props.defaultValue, props.onChange); |
| 340 | return ( |
| 341 | <button data-testid="value" onClick={() => setValue(value + 1)}> |
| 342 | {value} |
| 343 | </button> |
| 344 | ); |
| 345 | } |
| 346 | |
| 347 | function TransitionButton({onClick}) { |
| 348 | let [isPending, startTransition] = React.useTransition(); |
nothing calls this directly
no test coverage detected