React
Last update: 05. March 2023 (Created: 19. February 2023)React
Official Website: https://reactjs.org
- Create a new react app:
npx create-react-app <app-name>
ornpx create-react-app .
for current directory. - Test app locally:
npm start
- React Dev Tools Chrome Extension: https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi?hl=en-GB
- If hosted on a server may need a a
.htaccess
file. See: https://stackoverflow.com/a/58453234 - Material UI Docs: https://mui.com/material-ui/getting-started/overview/
- React Routing (React Router v6): https://www.w3schools.com/react/react_router.asp
- Add Leaflet Maps with Markers: https://react-leaflet.js.org
- Problems see: https://stackoverflow.com/questions/40365440/react-leaflet-map-not-correctly-displayed
- Test on other devices (in local network) just go to IP (In Windows set network to private -> discoverable in local network)
- Build for production:
npm run build
- test locally withserve -s build
(requires:npm install -g serve
) - Deutsches Impressum: https://www.impressum-generator.de/impressum-generator/
- If hosted on a server may need a a
.htaccess
file. See: https://stackoverflow.com/a/58453234 - Plausible (Google Analytics Alternative): https://plausible.io