60 Topics
Chapter•120 Minutes

Top ReactJS Questions & Practice

Master 60 essential ReactJS questions ranging from core fundamentals to senior-level real-world scenarios.

Junior Fundamentals — Question 1

Key Takeaways
  • Explain the underlying React mental model.

  • Connect the answer to a production scenario.

Knowledge Check

What is React?

Junior Fundamentals — Question 2

Key Takeaways
  • Explain the underlying React mental model.

  • Connect the answer to a production scenario.

Knowledge Check

What is JSX?

Junior Fundamentals — Question 3

Key Takeaways
  • Explain the underlying React mental model.

  • Connect the answer to a production scenario.

Knowledge Check

What is a React component?

Junior Fundamentals — Question 4

Key Takeaways
  • Explain the underlying React mental model.

  • Connect the answer to a production scenario.

Knowledge Check

What are props?

Junior Fundamentals — Question 5

Key Takeaways
  • Explain the underlying React mental model.

  • Connect the answer to a production scenario.

Knowledge Check

What is state?

Junior Fundamentals — Question 6

Key Takeaways
  • Explain the underlying React mental model.

  • Connect the answer to a production scenario.

Knowledge Check

Why should render logic be pure?

Junior Fundamentals — Question 7

Key Takeaways
  • Explain the underlying React mental model.

  • Connect the answer to a production scenario.

Knowledge Check

What does a key identify in a React list?

Junior Fundamentals — Question 8

Key Takeaways
  • Explain the underlying React mental model.

  • Connect the answer to a production scenario.

Knowledge Check

Why are stable IDs preferred over array indexes as keys?

Junior Fundamentals — Question 9

Key Takeaways
  • Explain the underlying React mental model.

  • Connect the answer to a production scenario.

Knowledge Check

What does useState return?

Junior Fundamentals — Question 10

Key Takeaways
  • Explain the underlying React mental model.

  • Connect the answer to a production scenario.

Knowledge Check

What does a state setter do?

Core APIs & State Management — Question 1

Key Takeaways
  • Explain the underlying React mental model.

  • Connect the answer to a production scenario.

Knowledge Check

When should a functional state updater be used?

Core APIs & State Management — Question 2

Key Takeaways
  • Explain the underlying React mental model.

  • Connect the answer to a production scenario.

Knowledge Check

What is lifting state up?

Core APIs & State Management — Question 3

Key Takeaways
  • Explain the underlying React mental model.

  • Connect the answer to a production scenario.

Knowledge Check

What is Context primarily useful for?

Core APIs & State Management — Question 4

Key Takeaways
  • Explain the underlying React mental model.

  • Connect the answer to a production scenario.

Knowledge Check

Is Context automatically a replacement for all global state management?

Core APIs & State Management — Question 5

Key Takeaways
  • Explain the underlying React mental model.

  • Connect the answer to a production scenario.

Knowledge Check

What is useReducer best suited for?

Core APIs & State Management — Question 6

Key Takeaways
  • Explain the underlying React mental model.

  • Connect the answer to a production scenario.

Knowledge Check

What should a reducer avoid?

Core APIs & State Management — Question 7

Key Takeaways
  • Explain the underlying React mental model.

  • Connect the answer to a production scenario.

Knowledge Check

What is derived state?

Core APIs & State Management — Question 8

Key Takeaways
  • Explain the underlying React mental model.

  • Connect the answer to a production scenario.

Knowledge Check

What is a controlled input?

Core APIs & State Management — Question 9

Key Takeaways
  • Explain the underlying React mental model.

  • Connect the answer to a production scenario.

Knowledge Check

Which prop controls a checkbox's boolean state?

Core APIs & State Management — Question 10

Key Takeaways
  • Explain the underlying React mental model.

  • Connect the answer to a production scenario.

Knowledge Check

What is a good reason to use a reducer?

Hooks, Effects & Closures — Question 1

Key Takeaways
  • Explain the underlying React mental model.

  • Connect the answer to a production scenario.

Knowledge Check

Where can Hooks be called?

Hooks, Effects & Closures — Question 2

Key Takeaways
  • Explain the underlying React mental model.

  • Connect the answer to a production scenario.

Knowledge Check

Why must Hooks not be called conditionally?

Hooks, Effects & Closures — Question 3

Key Takeaways
  • Explain the underlying React mental model.

  • Connect the answer to a production scenario.

Knowledge Check

What is useEffect primarily for?

Hooks, Effects & Closures — Question 4

Key Takeaways
  • Explain the underlying React mental model.

  • Connect the answer to a production scenario.

Knowledge Check

What is effect cleanup for?

Hooks, Effects & Closures — Question 5

Key Takeaways
  • Explain the underlying React mental model.

  • Connect the answer to a production scenario.

Knowledge Check

What is a stale closure?

Hooks, Effects & Closures — Question 6

Key Takeaways
  • Explain the underlying React mental model.

  • Connect the answer to a production scenario.

Knowledge Check

What does useRef provide?

Hooks, Effects & Closures — Question 7

Key Takeaways
  • Explain the underlying React mental model.

  • Connect the answer to a production scenario.

Knowledge Check

When should state be preferred over a ref?

Hooks, Effects & Closures — Question 8

Key Takeaways
  • Explain the underlying React mental model.

  • Connect the answer to a production scenario.

Knowledge Check

What does useMemo cache?

Hooks, Effects & Closures — Question 9

Key Takeaways
  • Explain the underlying React mental model.

  • Connect the answer to a production scenario.

Knowledge Check

What does useCallback cache?

Hooks, Effects & Closures — Question 10

Key Takeaways
  • Explain the underlying React mental model.

  • Connect the answer to a production scenario.

Knowledge Check

Should every callback be wrapped in useCallback?