({phase})
| 137 | } |
| 138 | |
| 139 | function Example({phase}) { |
| 140 | const hostRef = useRef(); |
| 141 | const classRef = useRef(); |
| 142 | return ( |
| 143 | <> |
| 144 | <div key={`host-${phase}`} ref={hostRef} /> |
| 145 | <Component key={`class-${phase}`} ref={classRef} /> |
| 146 | </> |
| 147 | ); |
| 148 | } |
| 149 | |
| 150 | await act(() => { |
| 151 | ReactNoop.render(<Example phase="mount" />); |
nothing calls this directly
no test coverage detected