React Foundations

Study React Foundations with full lessons, revision notes and quick reference, across 35 lessons.

8 modules. 35 lessons. Self-paced.

Roles this course prepares you for

Course curriculum

No exam weights apply. Lessons follow practical prerequisites, from a first running app to a tested application built from a brief.

Free to read: 5 lessons, no account needed

Start Here (4 lessons)
  1. How this course works (read now)

    • Describe what the course covers and excludes, and how Full Course, Revision and Quick Reference are used.
    • Explain why completing lessons is not the same as demonstrating a React skill.
  2. Set up Node.js and run your first React app (read now)

    • Confirm a supported Node.js and npm version and create the practice folder.
    • Create a project from the Vite react template, start the dev server, see an edit appear and stop the server.
  3. What is inside a React project (read now)

    • Explain what index.html, src/main.jsx and src/App.jsx each do and how the browser reaches App.
    • Explain what createRoot and StrictMode do, and what package.json scripts run.
  4. The JavaScript React code relies on (read now)

    • Read and predict code using arrow functions, destructuring, spread copies and module imports.
    • Explain shallow copying and what await fetch waits for, including why fetch does not reject on HTTP errors.
Describing the UI (5 lessons)
  1. Components and JSX (read now)

    • Write function components with capitalised names and return valid JSX.
    • Fix the common differences between HTML and JSX and embed JavaScript values with curly braces.
  2. Plan a screen as a component tree

    • Break a supplied screen sketch into a tree of components with one job each.
    • Set up the reading-list project from supplied pinned files and build the static screen across several modules.
  3. Pass data with props and children

    • Pass values, objects, functions and children as props, and destructure them with defaults.
    • Explain one-way data flow and why a component must not change its props.
  4. Render lists and conditional content

    • Render arrays with map and filter and show content conditionally with if, ? : and &&.
    • Choose stable keys and explain what breaks with index or random keys.
  5. How React renders, and keeping components pure

    • Describe trigger, render and commit, and that commit changes only DOM nodes whose output differs.
    • Keep rendering free of side effects and explain why Strict Mode renders twice in development.

With course access: 30 lessons

Adding Interactivity (3 lessons)
  1. Respond to events and remember values with state

    • Attach event handlers without calling them during render, and pass a handler from a parent to a child through props.
    • Add state with useState, explain why a local variable cannot do the job, and follow the Rules of Hooks.
  2. State as a snapshot and queued updates

    • Predict what a render shows, given that state is fixed within a render and setters queue a new render.
    • Use updater functions when the next value depends on the previous one.
  3. Update objects and arrays in state

    • Replace objects and arrays in state with updated copies for add, remove, edit and reorder.
    • Recognise a mutation bug and fix it.
Forms, Tests and State Structure (7 lessons)
  1. Build controlled forms with validation

    • Build labelled controlled inputs and handle submission with onSubmit and preventDefault.
    • Model the form's states and show validation messages associated with their fields.
  2. Test components by what users see

    • Configure Vitest with jsdom, React Testing Library, user-event and jest-dom.
    • Write tests for the form's error and success paths that query by role and label.
  3. Keep state minimal and derive the rest

    • Identify redundant, duplicated or contradictory state.
    • Derive values during render instead of storing them.
  4. Share state by lifting it up

    • Move shared state to the closest common parent and pass it down with the handlers that change it.
    • Explain single source of truth and controlled versus uncontrolled components.
  5. Preserve and reset state on purpose

    • Explain that React keeps state by a component's position in the tree.
    • Reset a component's state on purpose with a key, and avoid defining components inside components.
  6. Consolidate update logic in a reducer

    • Move related updates into a pure reducer driven by actions and dispatch them with useReducer.
    • Compare a reducer with several useState calls and test a reducer as a plain function.
  7. Pass data deeply with context

    • Create, provide and read a context, and combine it with a reducer to share state and dispatch.
    • Explain when passing props or composing with children is the simpler choice.
Refs and Effects (5 lessons)
  1. Use refs for values and DOM nodes

    • Keep a value that should not trigger rendering in a ref and reach a DOM node to focus it.
    • Pass a ref to your own component as a prop, and avoid reading ref.current during render.
  2. Catch mistakes early with React's lint rules

    • Install ESLint and the eslint-plugin-react-hooks recommended preset in place of the template's oxlint.
    • Read and act on rules-of-hooks, exhaustive-deps and compiler-powered findings without suppressing them.
  3. Synchronise with external systems using effects

    • Use an effect to synchronise with something outside React and return cleanup that undoes it.
    • Explain the extra setup-and-cleanup cycle Strict Mode runs in development.
  4. Effect dependencies and Effect Events

    • Declare every reactive value an effect reads, and fix dependency problems by changing the code rather than the list.
    • Use useEffectEvent for logic that should read the latest values without re-synchronising.
  5. Remove effects you do not need

    • Recognise effects that only derive data, reset state or respond to a user event.
    • Replace them with calculation during render, a key, or code in the event handler.
Working with Data (5 lessons)
  1. Load data with loading and error states

    • Load JSON from the dev server in an effect and represent loading, error and success.
    • Check response.ok and explain why frameworks and data libraries are usually preferred in production.
  2. Stop old responses overwriting new ones

    • Reproduce a race condition between two requests.
    • Fix it with an ignore flag in cleanup and with AbortController, and handle AbortError correctly.
  3. Extract reusable logic into custom hooks

    • Move repeated stateful logic into a function whose name starts with use.
    • Explain that each call has its own state, and decide when extraction helps.
  4. Test asynchronous behaviour

    • Test a component that loads data by replacing fetch in the test and waiting with findBy.
    • Test the loading and error states, and check that each test fails when its behaviour breaks.
  5. Submit forms with Actions and useActionState

    • Pass a function to a form's action prop and read FormData.
    • Use useActionState to show a pending state and the result of a submission, and compare with onSubmit.
Performance and Diagnosis (3 lessons)
  1. Find out why a component re-renders

    • Explain that a state change re-renders that component and its children.
    • Find unnecessary re-renders with React Developer Tools or logging, and fix them by moving state down.
  2. Memoisation and the React Compiler

    • Apply memo, useMemo and useCallback only where a cost has been shown.
    • Explain what the React Compiler automates, and optionally enable it and compare.
  3. Diagnose common React failures

    • Use the console, Vite's overlay, development warnings, lint findings and developer tools to find a failure's cause.
    • Choose a fix that addresses the cause, and say what evidence confirms it.
Build and Final Challenge (3 lessons)
  1. Build and preview for production

    • Create a production build, preview it locally and explain what dist contains.
    • Explain what differs between development and production and why preview is not a hosting service.
  2. Final challenge: RSVP board

    • Build a small event RSVP board from a brief and starter data using only skills from the course.
    • Meet the supplied acceptance tests, lint and manual checks before looking at the reference solution.
  3. Final challenge: reference solution and next steps

    • Compare your solution with an explained reference solution and the constraints any valid solution must meet.
    • Identify sensible next topics: frameworks, routing, TypeScript and data libraries.

Study views

  • Full Course
  • Revision
  • Quick Reference

Unlock all 35 lessons

Course access opens every lesson and adds revision notes, the Quick Reference, saved progress, bookmarks and your own notes.

INR 199 plus 18% GST. 90 days of online access. No auto-renewal.

Know what is included

Independent learning material from Vectametric. Not affiliated with or endorsed by the organisations behind the tools it teaches. Practice exams and projects are separate. Completing a course is not a professional certification.

Questions about courses

Are these video courses or reading courses?

The current courses use written lessons, examples and diagrams. Full Course, Revision and Cheat Sheet or Quick Reference views cover the same learning sequence at different levels of detail.

Which course should I start with?

Choose a Certification Course for a named exam, a Career Path Course for a role-led sequence, or a Skill Course for a focused subject. Read its level, prerequisites and curriculum before enrolling.

Do revision notes replace the full lessons?

No. Start with the full explanations, then use revision notes to refresh your understanding. Cheat sheets are concise study references, not a substitute for learning or permission to use notes during an official exam.

Are practice exams and projects included?

No. Course access, practice-exam bundles and project access are separate. An official certification, exam booking or voucher is not included.

How long do I have access?

The course page and checkout show the current online access period and price, including free enrollment where offered. Access starts when enrollment is confirmed and does not auto-renew.

Can I read lessons before enrolling?

Yes. Each course opens its first lessons to read without an account, and some courses are open in full. The course curriculum marks the lessons you can read now. Course access adds the remaining lessons, the Revision and Cheat Sheet or Quick Reference views, saved progress, bookmarks and personal notes.

Review the Terms and No-Refund Policy before confirming access. All sales are final; Vectametric does not offer refunds.

This website is operated by VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED, operating as Vectametric.

Corporate Identity Number (CIN): U85499KA2026OPC229822. GSTIN: 29AAMCV8281D1ZS. Registered office: RS NO/38/2A/1 BASTAND, ROAD MAHANTESH NAGAR, Ramdurg, Ramdurg, Belgaum- 591123, Karnataka.

Queries and grievances: Prajval Honnungar, Grievance Officer and Data Protection Contact.

Telephone: +91 94800 09310. Support: support@vectametric.com. Grievances: support@vectametric.com.

Copyright 2026 VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED. All rights reserved.

Vectametric home · Roadmaps · Vecta IT Exams · Vecta Government Exams · Vecta Banking & Finance Exams · Vecta Entrance Exams · About us · Contact · Privacy Policy · Terms and Conditions · No-Refund Policy