Flashcards on HTML and React Components

Click on the flashcard to see the answer


What is the use of HTML in React?

HTML is used in React for creating the structural layout of the web page.

What are React Components?

React components are the building blocks of React applications. They are reusable UI units that help in developing the app's UI.

What are the benefits of using React Components?

React components provide better reusability, improved maintainability, faster development, easier testing and hassle-free debugging.

What is JSX in React?

JSX is an extension to JavaScript that allows writing HTML-like syntax in JavaScript files, which is used to render the UI in React.

What are stateless components in React?

Stateless components are components that do not have any state of their own. They are also known as presentational or dumb components.

What is the difference between props and state in React?

Props are read-only and are used to pass data from one component to another, while state is used to manage private data of a component.

What is the use of keys in React?

Keys are used to identify unique items in a list of elements and to help React optimize the rendering performance of the component.

What is the difference between controlled and uncontrolled components in React?

Controlled components are components where the state is managed by React, while uncontrolled components are components where the state is managed by the DOM.

What are Higher Order Components in React?

Higher Order Components (HOCs) are functions that take a component and return a new component with additional functionality.

What is the purpose of the virtual DOM in React?

The virtual DOM is a lightweight copy of the actual DOM that helps React in comparing the current state of the UI with the previous state and updating only the necessary changes.

What are the lifecycle methods of a React component?

The lifecycle methods of a React component are: componentDidMount(), componentDidUpdate(), componentWillUnmount() and shouldComponentUpdate().

What is React Router?

React Router is a library used for client-side routing in React applications.

What is Redux in React?

Redux is a state management library used for managing the state of a React application.

What is React Native?

React Native is a mobile development framework used for building native mobile applications using React.

What is Babel in React?

Babel is a transpiler used for converting modern JavaScript code into a backward-compatible version that can run on all browsers.

What is the use of HTML in React?

HTML is used in React for creating the structural layout of the web page.

What are React Components?

React components are the building blocks of React applications. They are reusable UI units that help in developing the app's UI.

What are the benefits of using React Components?

React components provide better reusability, improved maintainability, faster development, easier testing and hassle-free debugging.

What is JSX in React?

JSX is an extension to JavaScript that allows writing HTML-like syntax in JavaScript files, which is used to render the UI in React.

What are stateless components in React?

Stateless components are components that do not have any state of their own. They are also known as presentational or dumb components.

What is the difference between props and state in React?

Props are read-only and are used to pass data from one component to another, while state is used to manage private data of a component.

What is the use of keys in React?

Keys are used to identify unique items in a list of elements and to help React optimize the rendering performance of the component.

What is the difference between controlled and uncontrolled components in React?

Controlled components are components where the state is managed by React, while uncontrolled components are components where the state is managed by the DOM.

What are Higher Order Components in React?

Higher Order Components (HOCs) are functions that take a component and return a new component with additional functionality.

What is the purpose of the virtual DOM in React?

The virtual DOM is a lightweight copy of the actual DOM that helps React in comparing the current state of the UI with the previous state and updating only the necessary changes.

What are the lifecycle methods of a React component?

The lifecycle methods of a React component are: componentDidMount(), componentDidUpdate(), componentWillUnmount() and shouldComponentUpdate().

What is React Router?

React Router is a library used for client-side routing in React applications.

What is Redux in React?

Redux is a state management library used for managing the state of a React application.

What is React Native?

React Native is a mobile development framework used for building native mobile applications using React.

What is Babel in React?

Babel is a transpiler used for converting modern JavaScript code into a backward-compatible version that can run on all browsers.

Share


Login to Save


Share



Login to Save


Explore Other Decks


Made for Grade 7

Information Technology: Objects in Electronic Spreadsheets


View Deck
Made for Grade 8

The French Revolution


View Deck
Made for Grade 8

Thinking Outside the Box


View Deck

Explore More