React Assignments — Build. Iterate. Master.

Advance from fundamentals to production-grade React with topic-wise assignments. Each set includes 20 Basic, 20 Intermediate, and 10 Advanced questions so learners can practice intentionally and level up fast

Why practice with these assignments?

  • Go beyond tutorials—build real components and apps.
  • Internalize React’s rendering model, data flow, and hooks.
  • Learn to handle async data, routing, forms, and state confidently.
  • Prepare for interviews and projects with tasks that feel like real work.

How it works

  • Pick a topic from the list.
  • Attempt questions in order: Basic → Intermediate → Advanced.
  • Run locally (e.g., Vite or CRA), test in multiple browsers/devices.
  • Use React DevTools, console, and network tab to debug.
  • Document your approach; keep your best solutions as portfolio pieces.

Notes:

  • Focus is React 18+ and function components with Hooks.
  • Unless specified, avoid CSS/JS frameworks—focus on React patterns.
  • You may choose JS or TypeScript; some topics include TS-specific prompts.

What you’ll achieve

  • Clear mental model of state, props, effects, and rendering.
  • Practical patterns for forms, lists, routing, and data fetching.
  • Performance awareness (memoization, re-renders, code splitting).
  • Confidence to read codebases, refactor, and ship features.

Who should use this page?

Beginners learning React, students preparing for interviews, and developers who want to firm up modern React skills before moving to larger frameworks.

Tips for Success

  • Keep components small and focused; favor composition over “god” components.
  • Treat state as immutable; derive rather than duplicate.
  • Be strict about keys for lists and memoization boundaries.
  • Use DevTools Profiler to spot wasteful re-renders early.
  • Start with local state + hooks; adopt external state only when needed.
  • Prefer declarative data fetching patterns; centralize loading/error handling.
  • Write at least a few tests for critical paths (render, interactions, async).

Ready to build real confidence in React? Pick a set below and start solving!

FAQs

Q1. Do I need to use TypeScript?

No. JavaScript is fine. Some topics provide optional TS prompts for practice.

Q2. Can I use UI libraries?

You can, but try the core React version first to internalize patterns.

Q3. How do I verify correctness?

Check the UI, console warnings, React DevTools (state/props), and if applicable, run Jest tests.

Q4. Are there solutions?

Selected topics include reference implementations and walkthroughs—review only after attempting.

Q5. How much time should I spend?

Plan 10–60 minutes per difficulty band per topic; capstones may take longer.