Hacker News new | ask | show | jobs
by kr0 3720 days ago
What is the point of making a private reference to (what I assume) is a public ReactDOM reference?
2 comments

Do not ask these questions you will be fired.
Do not make fun of that statement or you will be fired.
It's a shunt so that people working with the current version of React don't have to know that ReactDOM exists until the refactor is complete.

It's a good, simple refactoring strategy when you're trying to responsibly change an API.