What is a component in React Native, and what is the difference between a functional and a class component?
A component is a reusable piece of UI, written as a function (or, historically, a class) that returns JSX describing what should render. Functional components with hooks are the norm now — they read cleaner, avoid this binding issues, and can reuse stateful logic across components via custom hooks in a way class lifecycle methods could not. Class components still work and appear in older codebases, but new code is functional by default.