Frontend
Back to frontend track
Deprecated

Overview

React Theory: What is React?

Almost all fresher interviews open with this questions. We cover possible follow-up questions as well.

Practice

Code as you read.

Keep the explanation and implementation side by side.

What is React? | React Theory | Easy Question | Frontend Hire

Watch alongside the notes.

Open video

A standard interview question used as a warm-up for the rest of the interview.

Answer

It is an open-source JavaScript library for building user interfaces. React enables a strong composition model, which allows you to build complex UIs out of simple components.

Follow Up Questions

Open Source? Isn't React owned by Facebook/Meta?

Yes, it was developed by Facebook/Meta to solve their problems. But they made it open-source and is maintained by Meta and a couple of other companies and individual developers.

What is a component?

A component is a reusable UI element that can be reused across your application. An example would be a button or a card.

What do you mean by a "strong composition model"?

The strong composition model is a design pattern that allows you to build complex UIs out of simple components. Something like Lego blocks. For example, a card can be composed of a header, a body, and a footer. Another example would be a text input, which can be composed of a label and an input.

Resources