How fairywsr/reactprojects works
File structure
• Top-level folders:
• cardContext (Context API demo)
• currencyConverter (calls external currency API)
• passwordGenerator (random password SPA)
• Each folder has:
• index.html (HTML shell)
• src/main.jsx → ReactDOM.render entry
• src/App.jsx → top-level component
• src/components or src/Components, src/hooks, src/contexts → UI & logic modules
• public or assets folder → static files
• tailwind.config.js, postcss.config.js → styling pipeline
• vite.config.js → dev server / build settings
• package.json → dependencies & scripts
README
• Confirms these are small React demos focused on state, styling, context, external API consumption.
Elements
• Code → Vite → bundle → browser
• User events → React state changes → UI updates
• Hook → fetch → API → data → UI
• Tooling / build pipeline (e.g. grey)
• Runtime components (e.g. blue)
• External services (e.g. green)