In code, everything is situational. The libraries we choose, the decisions we make, the code we write, is dependent upon project requirements, legal approval, and some companies even go as far as preventing the use of any libraries at all. If we are given the choice, we like to make our lives easier as developers […]
React 16.3 has been released and there have been a few changes which can be seen in the CHANGELOG.md. One of those changes is a way to access DOM refs. We now have a new way of accessing refs, instead of the previous callback function. Per React’s docs, this is how it is done: