0.1.11 • Published 3 years ago
@rickybento/inject v0.1.11
Bento Injector
Usage
$ npm i @bento/inject
$ yarn add @bento/inject
You 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 start
In another process:
# Start the example app, consuming our watched bento-embed
$ cd example && yarn start
In your browser, load up http://localhost:1234