import { App } from 'reapex'
import registryModule from 'reapex-module-component-registry'
const app = new App()
// 1. register the module
const registry = app.use(registryModule, '@@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" />
-
Notifications
You must be signed in to change notification settings - Fork 0
License
ReapexJS/reapex-module-component-registry
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published