Licence
ISC
Version
1.1.0
Deps
4
Vulns
0
Weekly
0
Hire Messages
React component able to show error, warning and success messages
Example usage
import Messages, { addMessage } from 'hire-messages';
Call addMessage to add a message. It's true.
addMessage({
type: 'error',
value: 'This is a error',
});
The component is already initialized, just add Messages
to another React component
<MyApp>
<Header>My App header</Header>
<Body>My App body</Body>
{Messages}
</MyApp>
Development
$ npm run watch