In this guide you’ll get Fundamentos React running on your local machine. Once the dev server is up you’ll have an interactive, sidebar-driven app that walks through core React concepts — components and JSX,Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Byrontosh/FundamentosReact/llms.txt
Use this file to discover all available pages before exploring further.
useState, useEffect, custom hooks, props, Zustand global state, conditional rendering, and localStorage persistence — each on its own dedicated route.
Start the dev server
Launch the Vite development server.Vite will start and print a local URL. Open it in your browser:Hot module replacement (HMR) is enabled by default — changes to any source file are reflected in the browser instantly without a full reload.
Navigate the app
Once the app loads you’ll land on the Fundamentos page. A sidebar on the left lists every concept covered by the project. Click any link to jump directly to that topic’s interactive demo page.
Each page contains live, editable examples so you can experiment directly in the browser.
| Sidebar link | Route | Concept covered |
|---|---|---|
| Fundamentos | /fundamentos | React components & JSX basics |
| useState | /usestate | Local state with useState |
| useEffect | /useffect | Side effects with useEffect |
| Custom Hook | /customhook | Extracting logic into custom hooks |
| Props | /props | Passing data between components |
| Zustand | /zustand | Global state management with Zustand v5 |
| Renderizado | /rederizado | Conditional & list rendering |
| localStorage | /localStorage | Persisting state with the Web Storage API |
Available scripts
The following scripts are defined inpackage.json and can be run from the project root.
| Script | Command | Description |
|---|---|---|
| Dev server | npm run dev | Starts the Vite development server on http://localhost:5173 with HMR enabled. |
| Production build | npm run build | Bundles the app for production into the dist/ directory. |
| Preview build | npm run preview | Serves the production build locally so you can verify the output before deploying. |
Project entry point
The application mounts fromsrc/index.jsx. It wraps the root <App /> component in React.StrictMode and attaches it to the #root <div> declared in index.html.
src/index.jsx
This project was originally scaffolded on Replit. As a result, This entry is harmless but unnecessary when running locally. You can safely remove the entire
vite.config.js contains a server.allowedHosts entry pointing to a Replit preview URL:vite.config.js
server block from vite.config.js if you want a clean local config.