30 random questions, 30 minutes, at the level you choose: hooks, state, rendering, effects and react 19. After you submit you get your score, your strong and weak topics, and the right answer with an explanation for every question.
Want to revise first? Read the React interview questions and answers.
The test draws on 300 React questions in 12 topics, across three levels. Each attempt picks 30 of them at random for the level you choose.
One question from each level, the way they appear in the test. Try it, then open the answer.
Answer: Lowercase tags are treated as built-in HTML elements such as div or span. JSX treats <profile /> as an HTML tag named profile and <Profile /> as your component. That is why a lowercase component name renders an unknown DOM element instead of calling your function.
Answer: <div dangerouslySetInnerHTML={{ __html: html }} />. React escapes strings by default, so {html} shows the tags as text. dangerouslySetInnerHTML is the explicit opt-out, named to remind you of XSS risk. Sanitise untrusted HTML, for example with DOMPurify, before using it.
async function like() {
await api.like(jobId);
setLikes(likes + 1);
} Answer: Use setLikes(l => l + 1), so each update builds on the latest value. Both clicks captured likes from the same render, so each sets the same value. An updater function receives the latest queued state, so two clicks add two. useCallback does not change what the closure captured.
Take the full React mock test: 30 questions, 30 minutes.
A question counts as right only when you pick exactly the right option, or all the right options where it says so; a question left blank counts as wrong. Your score is the share of the 30 questions you got right. The result also scores every topic, so you know what to revise before the interview.
Yes. The React mock test is free. You need a free CoreHRx Jobs account to start it, so your score and the topics to work on are saved.
Each test has 30 multiple-choice questions to answer in 30 minutes, picked at random from 300 React questions across three levels, so every attempt is different.
The questions cover Hooks, Performance, Architecture, Components, Concurrent, Effects, Forms, JSX, Rendering, State, Context, Testing. Your result shows how you did in each topic.
Fresher if you are a student or have less than a year of experience, Intermediate for 1 to 5 years at work, and Experienced for 5 years or more.
Only your best React score, and only when it is 60% or more. It shows on the job applications you send on CoreHRx. Lower scores stay private.
Yes, up to 10 tests a day. Each attempt picks questions you have not seen recently first.