Understanding refs in react native

59 Views Asked by At

So i am learning about refs (in react native). On react site here, it says that;

For example, instead of exposing open() and close() methods on a Dialog component, pass an isOpen prop to it.

Thus, not recommending using refs too much.

Please explain why?

What is the down point of using refs and why reactjs.org says so.

0

There are 0 best solutions below