React + Vite + TypeScript: Zero to Competence

A brutally honest, practice-driven study guide.

Introduction

This is not a tutorial. This is a curriculum. I will not give you the code. I will give you the requirements, the theory, and the documentation links. You must build the solutions.

🚀 React Crash Course

State and Effects in a nutshell:

function Counter() {
  const [count, setCount] = useState(0);

  useEffect(() => {
    document.title = `Count: ${count}`;
  }, [count]);

  return (
    <button onClick={() => setCount(c => c + 1)}>
      Count is {count}
    </button>
  );
}

⚠️ Brutally Honest Expectations

🎯 Expected Outcome

By the end of this guide, you will not just "know" React. You will be able to:

INTRO-001 Methodology

The "Build-Break-Fix" Pedagogy

Concept

This guide is designed to prove competence, not just familiarity.

Phases
  • The Build (Construction): You are given requirements, not code. If you can build the feature from a blank file, you own the knowledge.
  • The Bug Hunt (Reverse Engineering): I intentionally ask you to break things or fix broken scenarios. You cannot fix a "Stale Closure" or a "Render Loop" by guessing.
  • The Capstone (Synthesis): The final project combines everything. The ultimate test is: "Can I build this entire app again, from scratch, without looking at my old code?"

How to use this guide

  1. Read the Theory: I will provide keywords and concepts. You must read the official React docs linked.
  2. The "No-Copy" Rule: Type every line of code. Do not copy-paste from documentation.
  3. Complete the Challenge: Each module has a build requirement.
  4. Bug Hunt: I will describe a common bug. You must reproduce it and fix it.