ravi-example
v3.0.0
Published
this package is created to learn npm package creation
Downloads
1
Readme
ravi-example
this package is created to learn npm package creation
Install
npm install --save ravi-example
Usage
To use the Notification Component in your project, you first need to import it
import Notification from 'ravi-example';
Then, you can use the component like this:
import React, { Component } from 'react'
import Notification from 'ravi-example'
class Example extends Component {
render() {
return <Notification message="Hello, world!" />
}
}
Props
The Notification Component accepts the following props:
| Prop | Type | Description | | --------- | -------- | ------------------------------------------ | | message | string | The message to display in the notification |