UNPKG

react-router-loading

Version:

Wrapper for react-router that allows you to load data before switching the screen

68 lines (67 loc) 1.64 kB
{ "name": "react-router-loading", "version": "1.0.2", "description": "Wrapper for react-router that allows you to load data before switching the screen", "author": "Victor Trusov", "repository": { "type": "git", "url": "git+https://github.com/victortrusov/react-router-loading.git" }, "keywords": [ "react", "switch", "router", "loading", "fetch", "suspense", "react-router", "react-router-native", "react-router-dom", "preload", "prefetch", "prerender", "topbar", "bar" ], "license": "MIT", "bugs": { "url": "https://github.com/victortrusov/react-router-loading/issues" }, "homepage": "https://github.com/victortrusov/react-router-loading#readme", "scripts": { "dev": "vite", "build": "tsc && vite build", "preview": "vite preview", "pre-publish": "yarn build && cp -fr ../../README.md ." }, "peerDependencies": { "react": ">=16.8", "react-router-dom": "^6.0.0" }, "dependencies": { "topbar": "^1.0.1" }, "devDependencies": { "@types/node": "^17.0.36", "@types/react": "^18.0.9", "@vitejs/plugin-react": "^1.3.2", "react": "^18.1.0", "react-router": "^6.3.0", "typescript": "^4.6.3", "vite": "^2.9.13", "vite-plugin-dts": "^1.2.0" }, "files": [ "dist" ], "main": "./dist/react-router-loading.umd.js", "module": "./dist/react-router-loading.es.js", "types": "./dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/react-router-loading.es.js", "require": "./dist/react-router-loading.umd.js" } } }