React & Redux interview questions. Answered by me.

ReactJS logo intercrossed with Redux logo

1- What is React?

2- Explain the virtual DOM.

  • It doesn’t re-render the entire DOM, only the changed nodes
  • It doesn’t cause a performance drop
  • changing and creating the virtual DOM is cheap because it is very fast and it will never be rendered on the screen, this is why it is useful for comparison instead of using the real DOM.

3-What are pure functional Components?

5- Which feature can we use to cause a component to render only when its ID changes?

6- List some of the major advantages of React.

  • It’s is a library, not a framework, which means it provides you with utilities to help YOU WRITE THE CODE, unlike frameworks it doesn’t write the code for you, which is important to avoid inversion of control.
  • Virtual DOM, which is important to avoid unnecessary re-rendering and re-painting of the entire dom because of minor changes.
  • Reusable Component-based pattern, which allows you to efficiently organize your code and connect components together in a predictable way.
  • JSX (JavaScript XML) which allows us to write HTML inside of JavaScript.
  • React hooks and component lifecycle, which allows us to control how our component should behave during its lifetime using various hooks.

7- What are the limitations of React?

  • Deprecated features that people got used to.
  • Deprecated documentation about deprecated methods.
  • Not enough recent documentation to keep up with the new features.

8- What is JSX?

9- Why can’t browsers read JSX?

10- What do you understand from “In React, everything is a component.”?

11- Explain the purpose of render() in React.

12- What is Props?

13- What is a state in React and how is it used?

  • It is used to render data to the DOM
  • It is used to be passed down as props to a child component
  • It is used to be integrated with a method or a function

14- What is an event in React?

15- What is Redux?

16- In Redux, what do you understand by “Single source of truth”?

17- Explain the role of the Reducer.

18- What is the significance of Store in Redux?

--

--

--

Front-end web developer and graduate student from Microverse.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Download In &#PDF React in Action Read @book >ePub

How to build an Interstellar VR CommLink with Google Daydream and WebAudio

All about React useState hook

hook image

Karate , A Unicorn Test Automation framework

How to Find nth Last Element in a Singly Linked List

Ten Topics That I learned Toady

[React] Scrolling to a specific element with useRef()

Best Practices for Passing Props in React

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Abdo Amin

Abdo Amin

Front-end web developer and graduate student from Microverse.

More from Medium

Using the State Hook in React: useState() Hook

Learn React by asking questions. React interview questions.

How to UseEffect In React

Reactjs: useEffect and lifecycle