I saw news that refs could be accessed through props in functional components in React 19, but before that, why couldn’t refs be accessed from regular props? I wonder why!
I studied about refs, but I couldn’t find a reason why refs can’t be accessed with regular props. I simply saw that refs and props are separated, but I want to know why they are separated like this in React.
2
If you need to use the ref value as prop in a child componet look at forwardRef