react-prefetcher
A react library providing components that help with interaction-based asset pre-fetching. Demo -
File Explorer
- favicon.ico
- index.html
- manifest.json
- index.js
- index.js
- index.js
- App.css
- App.js
- App.test.js
- index.css
- index.js
- serviceWorker.js
- .gitignore
- package-lock.json
- package.json
- README.md
- main.0f84021f.chunk.css
- main.0f84021f.chunk.css.map
- 2.dcc8df9a.chunk.js
- 2.dcc8df9a.chunk.js.map
- main.066f72df.chunk.js
- main.066f72df.chunk.js.map
- runtime~main.46fcdfae.js
- runtime~main.46fcdfae.js.map
- asset-manifest.json
- favicon.ico
- index.html
- manifest.json
- precache-manifest.f353fe2dcce57fdbfff016a75e042fe3.js
- service-worker.js
- index.js
- prefetcher.js
- prefetcher.test.js
- .babelrc
- .gitignore
- index.js
- LICENSE
- package-lock.json
- package.json
- prettier.config.js
- README.md
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Command Glossary
Commands referenced in this DOCs, explained below.
npm install
View Details ▼
npm install
Install Node packages.
npm {{[i|install]}}
Install dependencies listed in `package.json`:
npm {{[i|install]}} {{package_name}}@{{version}}
Download a specific version of a package and add it to the list of dependencies in `package.json`:
npm {{[i|install]}} {{package_name}} {{[-D|--save-dev]}}
Download the latest version of a package and add it to the list of dev dependencies in `package.json`:
yarn
View Details ▼
yarn
JavaScript and Node.js package manager alternative.
yarn global add {{module_name}}
Install a module globally:
yarn install
Install all dependencies referenced in the `package.json` file (the `install` is optional):
yarn add {{module_name}}@{{version}}
Install a module and save it as a dependency to the `package.json` file (add `--dev` to save as a dev dependency):
