React Redux Notification message
<p>I am new to React Redux, I have a notification component which show a message. I want to hide this message on click of this close icon. . here is my code. Please suggest. </p>

<pre><code>export default class NotificationMessage extends Component {
    constructor(props) {
        super(props);
        this._onClick = this._onClick.bind(this);
    };
    _onClick() {
        console.log("close this button");

    };
    render() {
        var message;
        //let classerr = this.props.messageType ? 'notificationTheme.success' : 'notificationTheme.success';

        //let cssClasses = `${classerr}`;
        if(this.props.messageType=='success')
        {
            message = &lt;div className={notificationTheme.success}&gt;
                &lt;span className={notificationTheme.message}&gt;{this.props.content}&lt;/span&gt;
                &lt;i className={`${iconTheme['ic-remove']} ${notificationTheme.remove} ic-remove `} onClick={() =&gt; this._onClick()}/&gt;

            &lt;/div&gt;
        }
        else
        {
            message = &lt;div className={notificationTheme.error}&gt;
                &lt;span className={notificationTheme.message}&gt;{this.props.content}&lt;/span&gt;
                &lt;i className={`${iconTheme['ic-remove']} ${notificationTheme.remove} ic-remove `} onClick={() =&gt; this._onClick()}/&gt;

            &lt;/div&gt;
        }
        return (
            message
        )
    }
}

NotificationMessage.propTypes = {
    config: PropTypes.shape({
        content: PropTypes.string.isRequired
    })
};
</code></pre>