Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 563 Bytes

README.md

File metadata and controls

31 lines (20 loc) · 563 Bytes

animated

Usage

Move component in your highest main react component.

import Notifications from "./Notifications"


class Main extends React.Component {

    render(){
        return (
            <div>
                <Notifications/>
            </div>
        )
    }
}

call notification anywhere inside your main component or child components

import {showNotification} from "./Notifications"

showNotification({text: "We could not find any data!"})