hire-messages
v1.1.0
Published
HuygensING React Messages
Downloads
1
Readme
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