This is a small App demonstrating a custom API for notificationsin React.js.
- get a string, show it as notification
- show itself in any corner of the screen, depends on the parameter provided (topleft (tl), bottomright (br)...)
- notifications disapear after x seconds
- notifications stack over each other
- 3 types of notifications: alert, info and warning. Each has a different color.
- extra mode for modals
For setting up this web app local you need to have installed:
- node
- yarn
Alternatively to yarn you can also use npm.
clone this repo
git clone https://github.com/andresattler/notification-widget.git notification-widget
install dependencies
yarn
run in development mode:
yarn start
now you can view this web app on localhost on port 8080
build app:
yarn build