0.1.11 • Published 5 years ago
@rickybento/inject v0.1.11
Bento Injector
Usage
$ npm i @bento/inject$ yarn add @bento/injectYou can consume the Bento as either a web component, or as a React component.
<bento-embed company="lettuce"></bento-embed>
..
<script src="path/to/embed.js" />..
import Bento from '@bento/inject/App';
..
<Bento company="lettuce" />;Documentation
Once you've cloned the repo:
# This will grab dependencies in the root and example directories
$ yarn install
# Start watching/rebuilding our bento-embed component
$ yarn startIn another process:
# Start the example app, consuming our watched bento-embed
$ cd example && yarn startIn your browser, load up http://localhost:1234