()
| 559 | function OldApp() { |
| 560 | const [value, setValue] = React.useState('old'); |
| 561 | function hideOnClick() { |
| 562 | // Schedule a discrete update. |
| 563 | setValue('update'); |
| 564 | // Synchronously unmount this root. |
| 565 | ReactDOM.flushSync(() => oldRoot.unmount()); |
| 566 | } |
| 567 | return ( |
| 568 | <button onClick={hideOnClick} ref={ref}> |
| 569 | {value} |
nothing calls this directly
no test coverage detected