nbcs-helpers
v0.1.71-alpha.1
Published
nbcs-helpers are reuseable functions that can be called within other components (e.g. Molecules/Organisms)
Downloads
22
Readme
helpers
nbcs-helpers are reuseable functions that can be called within other components (e.g. Molecules/Organisms)
Available helpers to date:
- LocalStorage::useStorage - Helper to use browser's local storage
- SliderHelper.js - Slick Carousel wrapper
- VideoHelper.js - MPX Video wrapper used for ShortFormVideos
Project setup
yarn install
Compiles and hot-reloads for development
yarn serve
Compiles and minifies for production
yarn build
Run your unit tests
yarn test:unit
Lints and fixes files
yarn lint
Usage
Example
import { useStorage } from 'nbcs-helpers';
export default {
setup(props) {
…
const storage = useStorage();
…
}
}