# @tfboys/loadable

> naive react loadable

Latest version **0.0.3** (published 2019-11-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install @tfboys/loadable
pnpm add @tfboys/loadable
yarn add @tfboys/loadable
bun add @tfboys/loadable
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2019-11-17 |
| First published | 2019-03-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 110.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Julien |
| Maintainers | lakerswgq |
| Keywords | react, loadable, tfboys |

## Links

- npm: https://www.npmjs.com/package/@tfboys/loadable
- Repository: https://github.com/lakerswgq/react-loadable
- Homepage: https://github.com/lakerswgq/react-loadable#readme
- Issues: https://github.com/lakerswgq/react-loadable/issues
- npm.io page: https://npm.io/package/@tfboys/loadable

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.0.3 (latest) — 2019-11-17
- 0.0.2 — 2019-03-25
- 0.0.1 — 2019-03-25

## README

# react-loadable
naive react loadable

## Install

```sh
yarn add @tfboys/loadable
```
## Example

```js
import Loadable from '@tfboys/loadable';

const LazyLoading = loadable({
    loader: () => {
        return new Promise((resolve, reject) => {
            // wait 2 seconds
            setTimeout(() => {
                resolve(import('./route/lazy-loading'))
            }, 2000);
        })
    },
    loading: () => { return 'loading' },
})

export default class App extends React.Component {
  render() {
    return <LazyLoading/>;
  }
}
```

---
_Source: https://npm.io/package/@tfboys/loadable · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
