preface
React is a JavaScript library for building user interfaces that originated as an internal Facebook project. React is primarily used to build uIs. React allows you to pass various types of parameters, such as declaration code that helps you render UI, static HTML DOM elements, dynamic variables, and even interactive application components.
The React features:
- React uses a declarative paradigm that makes it easy to describe applications.
- React minimizes interaction with the DOM by emulating the DOM.
- React works well with known libraries or frameworks.
React Interview questions
Basic knowledge of
- Distinguish between Real DOM and Virtual DOM
- What is React?
- What’s special about React?
- List some major advantages of React.
- What are the restrictions on React?
- What is JSX?
- Do you know Virtual DOM? Explain how it works.
- Why can’t browsers read JSX?
- How is the React ES6 syntax different from ES5?
- How is React different from Angular?
- React Performance optimization
- React vs. Vue
- What are the advantages of using React Hooks?
- UseState in React?
The React components
Components, conceptually similar to JavaScript functions. It takes an arbitrary input parameter (” props “) and returns a React element that describes what the page displays.
- You understand the phrase “In React, everything is a component.”
- Explain the purpose of render() in React.
- How do I embed two or more components into a component?
- What is the Props?
- What’s the difference between props and state?
- What’s the state in React? How is it used?
- Distinguish between states and props
- How do I update the state of a component?
- Why not just update the state?
- What is React context?
- What is the purpose of using super with props in constructor?
- What’s the arrow function in React? How does it work?
- Distinguish between stateful and stateless components.
- What are the phases of the React component lifecycle?
- Explain the React component’s lifecycle methods in detail.
- What are events in React?
- How to create an event in React?
- What are the composite events in React?
- What do you know about React refs?
- List some situations in which Refs should be used.
- What does refs do in React?
- How do I create refs?
- How to modularize code in React?
- How do I create forms in React
- How much do you know about controlled and uncontrolled components?
- What is HOC?
- What can you do with HOC?
- What is a pure component?
- What’s the importance of keys in React?
- What is the difference between a class component and a function component?
- Why do class methods need bindings?
- StrictMode in React?
React Redux
Redux is a JavaScript state container that provides predictable state management. Allows you to build consistent applications that run in different environments (client, server, native application) and are easy to test. Redux also supports other interface libraries in addition to React.
- What are the main problems with the MVC framework?
- Explain Flux
- What is a Redux?
- What are the three principles Redux follows?
- What do you mean by “single source of fact”?
- List the components of Redux.
- How does data flow through Redux?
- How do I define actions in Redux?
- Explain the role of Reducer.
- What does Store mean in Redux?
- How is Redux different from Flux?
- Brief introduction to flux idea
- What are the benefits of Redux?
- What are the downsides of Redux
- The implementation process of Redux
- Understanding of redux middleware and which middleware has been used
- Compare redux with Vuex
The React routing
React Router is a powerful routing library built on top of React that allows you to quickly add views and data streams to your application while keeping pages and urls in sync.
- What is the React route?
- React Router V4 uses the switch keyword.
- Why routes in React?
- List the advantages of the React Router.
- How does a React Router differ from a regular route?
- The implementation principle of the React – Router
- The react – in the router
<Link>
The labels and<a>
What’s the difference in labels
Need front-end learning materials, interview questions PDF documents can be added to the Q skirt: [624369675], free of charge!Copy the code