This repo started out as a coding challenge. Now it is a reusable library for a notification system.
Wrap your top-level component in the <NotificationProvider /> and insert the <BannerArea /> component as one of its children, in order to use the spawnBanner, spawnModal and spawnToast methods from the NotificationContext. See the <DemoApp /> for reference.
- run
yarnto install the package's dependencies - run
yarn startto start webpack-dev-server on port 3000 - run
yarn buildto compile the application - run
yarn test --coverageto run the tests and view the test coverage - if you add a commit,
yarn fix:scriptandyarn fix:stylewill automatically lint the code - the linters can also be manually be dry-run with
yarn check:scriptandyarn check:style