CodeZettaInterview Hub

React · Components · Fresh / Intern · Concept

What is a React component?

Short Interview Answer

A function (or class) that returns React elements describing UI for given props/state.

Detailed Explanation

Function components are the modern standard. They should be pure with respect to props/state during render. Side effects belong in effects or event handlers.

Did you know this answer?