https://github.com/ndrean/godownwind.github.io
React front-end of https://thedownwinder.com
https://github.com/ndrean/godownwind.github.io
cloudinary esri-leaflet leafletjs react react-select
Last synced: 10 months ago
JSON representation
React front-end of https://thedownwinder.com
- Host: GitHub
- URL: https://github.com/ndrean/godownwind.github.io
- Owner: ndrean
- Created: 2020-08-26T11:17:23.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-27T23:49:35.000Z (about 5 years ago)
- Last Synced: 2025-02-06T06:46:26.321Z (12 months ago)
- Topics: cloudinary, esri-leaflet, leafletjs, react, react-select
- Language: JavaScript
- Homepage:
- Size: 19.8 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
# Caching
<
>
### Code Splitting: Smaller payloads, reduce JS bundle
1. yarn analyze with source-map-explorer
```
yarn add source-map-explorer
```
Add in `package.json`:
```json
"scripts": {
"analyze": "source-map-explorer 'build/static/js/*.js'",
...
}
```
On peut ensuite lancer les commandes :
```
yarn build
yarn analyze
```
2. Suspense & lazy import
```js
const LazyComponent = React.lazy(()=> import('./something'))
[...]
Loading...}>
```
3. Loadable components
`yarn add @loadable/component``
# Lodash
'lodash' is an available library in CRA. Only needed to include the desired import: `import 'sortBy' from "lodash/sortBy"`.
# Serving build with `static-server`
With the conflict of Ruby's `serve', we use `static-server` to run the build file from the folder '\build`.
# PWA
Works only in 'build' mode.
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
## Favicon
### Deployment
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
### `yarn build` fails to minify
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify
# Cloudinary
Run 'react-starter-kit' generated from to get example.
# Misc
## Sync props
## Pass props to route component