├── .babelrc ├── .gitignore ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── dev ├── App.js ├── components │ └── Nav.js ├── index.html ├── main.js └── pages │ ├── About.js │ ├── Contact.js │ └── Home.js ├── lib ├── index.js └── package.json ├── mocks ├── fileMock.js └── styleMock.js ├── package.json ├── packages └── current-page-fallback │ ├── package.json │ └── src │ ├── components │ └── FallbackPageWrapper.tsx │ ├── hooks │ └── usePageRoute.ts │ ├── index.ts │ └── providers │ └── FallbackProvider.tsx ├── react-current-page-fallback.gif ├── tsconfig.json ├── tsconfig.paths.json ├── webpack.config.dev.js ├── webpack.config.prod.js └── yarn.lock /.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asifvora/react-current-page-fallback/HEAD/.babelrc -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asifvora/react-current-page-fallback/HEAD/.gitignore -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asifvora/react-current-page-fallback/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asifvora/react-current-page-fallback/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asifvora/react-current-page-fallback/HEAD/README.md -------------------------------------------------------------------------------- /dev/App.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asifvora/react-current-page-fallback/HEAD/dev/App.js -------------------------------------------------------------------------------- /dev/components/Nav.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asifvora/react-current-page-fallback/HEAD/dev/components/Nav.js -------------------------------------------------------------------------------- /dev/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asifvora/react-current-page-fallback/HEAD/dev/index.html -------------------------------------------------------------------------------- /dev/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asifvora/react-current-page-fallback/HEAD/dev/main.js -------------------------------------------------------------------------------- /dev/pages/About.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asifvora/react-current-page-fallback/HEAD/dev/pages/About.js -------------------------------------------------------------------------------- /dev/pages/Contact.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asifvora/react-current-page-fallback/HEAD/dev/pages/Contact.js -------------------------------------------------------------------------------- /dev/pages/Home.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asifvora/react-current-page-fallback/HEAD/dev/pages/Home.js -------------------------------------------------------------------------------- /lib/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asifvora/react-current-page-fallback/HEAD/lib/index.js -------------------------------------------------------------------------------- /lib/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asifvora/react-current-page-fallback/HEAD/lib/package.json -------------------------------------------------------------------------------- /mocks/fileMock.js: -------------------------------------------------------------------------------- 1 | module.exports = 'test-file-stub'; 2 | -------------------------------------------------------------------------------- /mocks/styleMock.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asifvora/react-current-page-fallback/HEAD/package.json -------------------------------------------------------------------------------- /packages/current-page-fallback/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asifvora/react-current-page-fallback/HEAD/packages/current-page-fallback/package.json -------------------------------------------------------------------------------- /packages/current-page-fallback/src/components/FallbackPageWrapper.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asifvora/react-current-page-fallback/HEAD/packages/current-page-fallback/src/components/FallbackPageWrapper.tsx -------------------------------------------------------------------------------- /packages/current-page-fallback/src/hooks/usePageRoute.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asifvora/react-current-page-fallback/HEAD/packages/current-page-fallback/src/hooks/usePageRoute.ts -------------------------------------------------------------------------------- /packages/current-page-fallback/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asifvora/react-current-page-fallback/HEAD/packages/current-page-fallback/src/index.ts -------------------------------------------------------------------------------- /packages/current-page-fallback/src/providers/FallbackProvider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asifvora/react-current-page-fallback/HEAD/packages/current-page-fallback/src/providers/FallbackProvider.tsx -------------------------------------------------------------------------------- /react-current-page-fallback.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asifvora/react-current-page-fallback/HEAD/react-current-page-fallback.gif -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asifvora/react-current-page-fallback/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.paths.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asifvora/react-current-page-fallback/HEAD/tsconfig.paths.json -------------------------------------------------------------------------------- /webpack.config.dev.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asifvora/react-current-page-fallback/HEAD/webpack.config.dev.js -------------------------------------------------------------------------------- /webpack.config.prod.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asifvora/react-current-page-fallback/HEAD/webpack.config.prod.js -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asifvora/react-current-page-fallback/HEAD/yarn.lock --------------------------------------------------------------------------------