@modular-component/core
v0.2.3
Published
Delightfully organized and deeply testable React Components
Downloads
6
Readme
@modular-component/core
Core system for creating a ModularComponent
factory. Exports the modularFactory
builder, and necessary types for creating extensions.
Installation and usage
yarn add @modular-component/core
// Usage in apps
import { ModularComponent, render } from '@modular-component/core'
const MyComponent = ModularComponent().with(
render(() => <div>Hello Modular!</div>),
)
// Usage in extensions
import { ModularStage } from '@modular-component/core'
export function extension(): ModularStage<'field', () => void> {
return { field: 'field', useStage: () => {} }
}
Learn more
Read the ModularComponent
ReadMe for more information about the ModularComponent
system.