Coding Challenges in React Interview for JPMC and Barclays
The most common interview question for the frontend developer post can be fetching the data from an API and rendering the elements. Even though it seems a very simple task, there can be some improv...

Source: DEV Community
The most common interview question for the frontend developer post can be fetching the data from an API and rendering the elements. Even though it seems a very simple task, there can be some improvements and optimisation that interviewer asks to do it while pair programming session. The main purpose of this round is to check your understanding about different concepts. These are some of the questions that I have been asked by the interviewer. Declare the Types and interfaces Declare three states or a single state with both other states Handle Race condition Discuss What are the different ways to handle it AbortController UseRef Mounted vs Unmounted getDetails call Can you declare the custom Hook Why UseState and what If UseReducer Why not arrow functions for buttons and what purpose it serves import { useEffect, useRef, useState } from "react" type Users = { name: string; username: string; email: string; address: Address id: number } type Address = { street: string; city: string; } exp