All questions
- What is Babel in React js? Babel, is a JavaScript compiler that converts latest JavaScript like ES6, ES7 into plain old ES5 JavaScript that most browsers understand. 1
- What is the use of Webpack? Webpack in basically is a module builder. It is mainly runs during the development process. 1
- What is Context? What is Context? React context helps you to pass data using the tree of react components. It helps you to share data globally between various react component... 1
- What are reacted portals? Portal allows you to render children into a DOM node. CreatePortalmethod is used for it. 2
- Explain strict mode StrictMode allows you to run checks and warnings for react components. It runs only on development build. It helps you to highlight the issu... 1
- What is the use of empty tags <> </>? Empty tags are used in React for declaring fragments. 2
- Explain error boundaries? Error boundaries help you to catch Javascript error anywhere in the child components. They are most used to log the error and show a fallbac... 1
- What are children prop? Children props are used to pass component to other components as properties. You can access it by using {props.children} 1
- Explain the use of ‘key’ in react list Keys allow you to provide each list element with a stable identity. The keys should be unique. 1
- What is ‘create-react-app’? create-react-app’ is a command-line tool which allows you to create one basic react application. 1
- What kind of information controls a segment in React? There are mainly two sorts of information that control a segment: State and Props State: State information that will change, we need to util... 1
- Explain pure components in React js Pure components are the fastest components which can replace any component with only a render(). It helps you to enhance the simplicity of t... 2
- State the main difference between Pros and State The main difference the two is that the State is mutable and Pros are immutable. 1
- What are the lifecycle steps of React? Important lifecycle steps of React js are: Initialization State/Property updates Destruction are the lifecycle of React 1
- Explain the use of the arrow function in React The arrow function helps you to predict the behavior of bugs when passed as a callback. Therefore, it prevents bug caused by this all togeth... 2
- How can you update state in react js? A state can be updated on the component directly or indirectly. 2
- What is React State? It is an object which decides how a specific component renders and how it behaves. The state stores the information which can be changed ove... 1
- Explain synthetic event in React js Synthetic event is a kind of object which acts as a cross-browser wrapper around the browser’s native event. It also helps us to combine the... 1
- Name two types of React component Two types of react Components are: Function component Class component 2
- Explain yield catchphrase in JavaScript The yield catchphrase is utilized to delay and resume a generator work, which is known as yield catchphrase. 1
- What is the use of a super keyword in React? The super keyword helps you to access and call functions on an object’s parent. 2
- What are Props in react js? Props mean properties, which is a way of passing data from parent to child. We can say that props are just a communication channel between c... 1
- Explain the Presentational segment A presentational part is a segment which allows you to renders HTML. The segment’s capacity is presentational in markup. 1
- Explain the term high order component A higher-order component also shortly known as HOC is an advanced technique for reusing component logic. It is not a part of the React API,... 1