As far as I am concerned, functional components and hooks are the way to go in React, since they are more modern. However, I am surprised to see that many React references (including the official Docs themselves) still use class-based components and do not promote these new features that are supposedly better. Plus, I noticed people looking into learning React are in two minds about which of these two ways to go. So, why are the docs and other accepted examples still using older tools in React? Can one accomplish things with the old version that are still impossible with the new one?