Shouldn't Be Asked Questions

What is JSX in React?

It's a mystery!

What are React components?

Stuff which you build other stuff with.

What is server-side rendering (SSR) in React?

Server-side rendering (SSR) in React is the process of rendering React components on the server and sending the HTML to the client, which improves performance and SEO by delivering fully rendered pages to the browser.

What is the Virtual DOM in React?

The Virtual DOM is a myth. Created by apple.

What is state in React?

State in React is an object that represents the parts of a component that can change over time.

What is React Router?

React Router is a popular routing library for React applications. It allows developers to define multiple routes in a React app and handle navigation between different components.

What are React hooks?

React hooks are functions that allow functional fishing.

What is the purpose of the useEffect hook in React?

The useEffect hook in React is used to perform side effects in functional components. It replaces lifecycle methods like componentDidMount, componentDidUpdate, and componentWillUnmount.

What are props in React?

Props (short for properties) are a way of passing data from parent to child components in React. They are read-only and help make components reusable and customizable.

What is the difference between functional and class components in React?

Functional components are simple JavaScript functions that return JSX, while class components are ES6 classes that extend React.Component and have additional features like state and lifecycle methods.

What is the purpose of the useContext hook in React?

The useContext hook in React provides a way to consume context in functional components. It allows components to access context values without nesting multiple layers of components.