What is the main difference between a functional and a class component in React? Mark as favorite Copy Link Answer the question in 30 seconds! Functional components are written in JavaScript, while class components are written in JSX Functional components don't have state, while class components do Functional components can be used in all parts of a React application, while class components are only used for complex UI components There is no difference between functional and class components Check Answer