# reapex-plugin-component-registry

> reapex component registry plugin

Latest version **1.0.3** (published 2019-09-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install reapex-plugin-component-registry
pnpm add reapex-plugin-component-registry
yarn add reapex-plugin-component-registry
bun add reapex-plugin-component-registry
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2019-09-11 |
| First published | 2019-09-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 18.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Yulong Ruan |
| Maintainers | ruanyu1 |
| Keywords | reapex, component, registry |

## Links

- npm: https://www.npmjs.com/package/reapex-plugin-component-registry
- Repository: https://github.com/ruanyl/reapex-plugin-component-registry
- Homepage: https://github.com/ReapexJS/reapex-plugin-component-registry#readme
- Issues: https://github.com/ReapexJS/reapex-plugin-component-registry/issues
- npm.io page: https://npm.io/package/reapex-plugin-component-registry

## Dependencies (1)

- [@types/react](https://npm.io/package/@types/react.md) ^16.9.2

## Recent versions

- 1.0.3 (latest) — 2019-09-11

## README

### Reapex modal plugin

```typescript
import { App } from 'reapex'
import registryPlugin from 'reapex-plugin-component-registry'

const app = new App()

// 1. register the plugin
const registry = app.plugin(registryPlugin, '@@registry')

// 2. register a component
const ComponentA: React.FC<{}> = () =>
  <div>
    This is ComponentA A
  </div>

registry.register('ComponentA', ComponentA)

// use the registered component
<registry.Component name="ComponentA" />
```

---
_Source: https://npm.io/package/reapex-plugin-component-registry · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
