
Ok, Class Components are bad, I get it. But what are the alternatives? Functional Components. If a component has nothing but the render method, then it is a great candidate for refactoring into a functional component. Let’s see how the App component created by create-react-app can be improved: