React Component Type
Question
What is a React functional component?
Hint
Functional components are plain JS functions returning JSX.
Explanation
A functional component is a plain JavaScript function that accepts props and returns JSX (React elements). Since React 16.8 with Hooks, functional components can use state and lifecycle features, making class components largely unnecessary. They are simpler, less boilerplate, and easier to test. Example: function Welcome(props) { return <h1>Hello, {props.name}</h1>; }.
Related Resources
Related Lessons
- React Overview
Learn React basics.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.