A functional component in React is a JavaScript function that returns a React element, which is an object that describes a part of the UI. Functional components are also known as “stateless” components because they do not have a state. A class component in React is a JavaScript class that extends React.Component class. It has a state, which can be used to store the data that the component needs to render.