├── .gitignore ├── LICENSE ├── README.md ├── eslint.config.js ├── package.json ├── pnpm-lock.yaml ├── src ├── components │ ├── container.tsx │ └── index.tsx ├── hooks │ └── useLazy.ts ├── index.tsx └── vite-env.d.ts ├── tsconfig.json └── vite.config.ts /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manuelbento19/react-lazy/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manuelbento19/react-lazy/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manuelbento19/react-lazy/HEAD/README.md -------------------------------------------------------------------------------- /eslint.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manuelbento19/react-lazy/HEAD/eslint.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manuelbento19/react-lazy/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manuelbento19/react-lazy/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /src/components/container.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manuelbento19/react-lazy/HEAD/src/components/container.tsx -------------------------------------------------------------------------------- /src/components/index.tsx: -------------------------------------------------------------------------------- 1 | export {default as LazyComponent} from './container'; -------------------------------------------------------------------------------- /src/hooks/useLazy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manuelbento19/react-lazy/HEAD/src/hooks/useLazy.ts -------------------------------------------------------------------------------- /src/index.tsx: -------------------------------------------------------------------------------- 1 | export * from './components'; -------------------------------------------------------------------------------- /src/vite-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manuelbento19/react-lazy/HEAD/tsconfig.json -------------------------------------------------------------------------------- /vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manuelbento19/react-lazy/HEAD/vite.config.ts --------------------------------------------------------------------------------