You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'Component "Component" contains the string ref "inner". '+
224
-
'Support for string refs will be removed in a future major release. '+
225
-
'We recommend using useRef() or createRef() instead. '+
226
-
'Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref\n'+
227
-
' in Wrapper (at **)\n'+
228
-
' in div (at **)\n'+
229
-
' in Wrapper (at **)\n'+
230
-
' in Component (at **)',
231
-
]);
232
-
});
233
-
234
122
it('should not have string refs on unmounted components',async()=>{
'Component "RefsComponent" contains the string ref "myDiv". '+
100
-
'Support for string refs will be removed in a future major release. '+
101
-
'We recommend using useRef() or createRef() instead. '+
102
-
'Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref\n'+
0 commit comments