Posts

post

Basic ReactJS Interview Questions

Image
  Here are some ReactJS interview questions on basic concepts. 1. What are the features of React? JSX:  JSX is a syntax extension to JavaScript. It is used with React to describe what the user interface should look like. By using JSX, we can write  HTML  structures in the same file that contains  JavaScript  code. Components:  Components  are the building blocks of any React application, and a single app usually consists of multiple components. It splits the user interface into independent, reusable parts that can be processed separately. Virtual DOM: React keeps a lightweight representation of the real DOM in the memory, and that is known as the virtual DOM. When the state of an object changes, virtual DOM changes only that object in the real DOM, rather than updating all the objects. One-way data-binding: React’s one-way  data binding  keeps everything modular and fast. A unidirectional data flow means that when designing a React app, ...