Clima React App is bootstrapped with Create React App, which means theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/jantoniogc/CursoReact-Clima/llms.txt
Use this file to discover all available pages before exploring further.
build script produces a fully static site — plain HTML, JavaScript, and CSS files — that you can host on any static file server or CDN without a Node.js runtime.
Available scripts
Thepackage.json defines four scripts:
| Script | Command | Purpose |
|---|---|---|
npm start | react-scripts start | Development server on port 3000 with hot reload |
npm run build | react-scripts build | Production build output to the build/ directory |
npm test | react-scripts test | Runs the test suite with Jest |
npm run eject | react-scripts eject | Ejects from Create React App (irreversible) |
Steps to create a production build
Replace the API key
Open
src/App.js and replace the hardcoded OpenWeatherMap API key with your own. See API setup for instructions on obtaining a key.Inspect the build/ folder
After the command completes, the
build/ directory contains:index.html— the app shell with injected script and style tagsstatic/js/— minified JavaScript bundles with content-hash filenames (e.g.,main.a1b2c3d4.chunk.js)static/css/— minified CSS bundles with content-hash filenames- Public assets copied from the
public/directory (favicon, manifest, logos)
What react-scripts build does
Under the hood,react-scripts build runs Webpack in production mode:
- Bundles and minifies JavaScript — all modules are combined and whitespace/comments are stripped
- Tree-shaking — unused code is removed from the final bundle
- Content-hash filenames — each output file gets a hash derived from its contents, enabling aggressive cache busting without invalidating unchanged files
- CSS extraction and minification — styles are extracted into separate
.cssfiles and minified
The
build/ directory is listed in .gitignore by default and should not be committed to version control. Deploy its contents to your host instead.