I'm trying to learn React and I noticed that when I used npx create-react-app my-project, it created the App.js file as a functional component, as opposed to a class component, as it did in past versions. I found this commit on create-react-app's repo where they changed it.
What I'm trying to figure out, is why they did this? I read this article on class components vs. functional components and as far as I understand it, functional components are stateless. I must be misunderstanding, or maybe just do not have the full knowledge in this area yet, as I cannot understand why we would want the main component for the entire app to be stateless?
P.S. I understand that the App.js file can be easily changed back to a class component, but I'm trying to understand why they would change it to default to a functional component.