Inquiry on findDOMNode is deprecated in StrictMode

I am new to React and I recently encountered this warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of Transition which is inside StrictMode. Instead, add a ref directly to the element you want to reference.

Turns out this warning is due to the library I am using which is Material UI. I found a remedy to remove this annoying warning from this post.

Now don’t get me wrong, the solution works like magic but the curious me would like to ask if there might be any side effects that could possibly occur if I do the said solution?

P.S. May the React Gods enlighten an oblivious mortal.

Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.