atlantis-engine
v1.0.3
Published
Shared render function and component registry
Readme
Your Package Name
Shared render function and component registry for use across projects.
Setup (one time)
npm installPublish to npm (one time account setup)
npm loginThen whenever you want to publish:
npm publishTo publish an update, bump the version first:
npm version patch # 1.0.0 -> 1.0.1
npm publishUsage in other projects
npm install your-package-nameimport { renderElement, componentRegistry } from 'your-package-name'Extend the registry in a project
import { componentRegistry, renderElement } from 'your-package-name'
// Add your own components
componentRegistry.image = ({ src, domAttributes }) => <img src={src} {...domAttributes} />