What is a stateless functional component?
1Times asked
Apr 2026Last seen
Apr 2026First seen
💡 Model Answer
A stateless functional component is a React component defined as a plain JavaScript function that receives props and returns JSX. It does not manage its own state (no this.state or setState) and does not use lifecycle methods. It is lightweight, easier to test, and can be memoized with React.memo for performance. Example: const Greeting = ({name}) => <h1>Hello, {name}!</h1>; This component simply renders based on the props it receives.
This answer was generated by AI for study purposes. Use it as a starting point — personalize it with your own experience.
🎤 Get questions like this answered in real-time
Assisting AI listens to your interview, captures questions live, and gives you instant AI-powered answers — invisible to screen sharing.
Get Assisting AI — Starts at ₹500