React JS Online Assessment Questions & Answers
40 questions for the online assessment stage — 20 easy, 20 medium.
About the online assessment round
Most companies start with an online test: aptitude and reasoning, a few MCQs on core React JS concepts, and one or two short hands-on tasks. It filters a large number of applicants, so speed and accuracy both count.
Tips for the online assessment round
- Practise under a timer: about one minute per MCQ and 15-20 minutes per hands-on task.
- Read every option before answering; tests often include two nearly correct choices.
- Use a stable internet connection, keep your camera on and avoid switching tabs in proctored tests.
- Attempt the questions you are sure about first, then return to the harder ones.
How do you navigate programmatically after a form submits?
Show answer
What are Core Web Vitals and how do React apps affect them?
Show answer
What is client-side routing and how does React Router provide it?
Show answer
What are synthetic events in React?
Show answer
How do you read and update query parameters like ?page=2&sort=price?
Show answer
How do you set up a Redux store and use it in components?
Show answer
How does the dependency array of useEffect control when the effect runs?
Show answer
Why is React Hook Form popular?
Show answer
An orders table renders 10,000 rows and the page freezes on load and scroll. What would you do?
Show answer
What are the special files in the Next.js App Router?
Show answer
What is the React Compiler?
Show answer
Your Next.js build fails with 'ReferenceError: window is not defined'. Why, and how do you fix it?
Show answer
What is the difference between functional components and class components?
Show answer
Your team's old codebase uses PropTypes and is upgrading to React 19. What would you recommend for checking prop types?
Show answer
How do you create a protected route that redirects users who are not logged in?
Show answer
What is React and why is it so widely used for building web interfaces?
Show answer
What is an effect cleanup function and why is it important?
Show answer
What is the difference between useMemo and useCallback?
Show answer
How do you lazy load route components to reduce the initial bundle?
Show answer
Why must Redux reducers be pure functions?
Show answer
Your component fetches data in useEffect and the network tab shows thousands of requests in a loop. What could cause it?
Show answer
How do you set SEO metadata in a Next.js App Router page?
Show answer
How do you read a dynamic URL parameter like a product id?
Show answer
Write a test for a counter component that increments on click.
Show answer
Your manager asks you to set up a new React project in 2026 and suggests Create React App. What would you recommend?
Show answer
What is a Higher-Order Component and is it still used?
Show answer
Write a simple counter component with increment, decrement and reset buttons.
Show answer
How do you fetch data in a Next.js App Router page?
Show answer
How do you include accessibility checks in your React tests?
Show answer
What does one-way data flow mean in React?
Show answer
What is the difference between props and state?
Show answer
What are the risks of spreading all props like <Input {...props} />?
Show answer
What does the 'use client' directive do?
Show answer
Your team uses the array index as key in a todo list and users report that checkboxes get ticked on the wrong item after deleting a row. What is happening?
Show answer
Show how to fetch data with TanStack Query.
Show answer
How do you implement code splitting with React.lazy and Suspense?
Show answer
What does React.memo do?
Show answer
What does lifting state up mean?
Show answer
What is the Context API and when should you use it?
Show answer
Frequently asked questions
What happens in the React JS online assessment round?
Most companies start with an online test: aptitude and reasoning, a few MCQs on core React JS concepts, and one or two short hands-on tasks. It filters a large number of applicants, so speed and accuracy both count.
How do I clear the online assessment round?
Practise under a timer: about one minute per MCQ and 15-20 minutes per hands-on task. Read every option before answering; tests often include two nearly correct choices. Use a stable internet connection, keep your camera on and avoid switching tabs in proctored tests.
Which round comes next?
A typical order is online assessment, telephonic screening, one or two technical rounds, a managerial round and HR. Use the other round pages to practise each stage.