I have a question, how can i unmount component by itself. so basically, when i click the component it should unmount itself without calling the parent component, hide/show properties. here is a sample of my code.
onClose = () => {
let mountNode = ReactDOM.findDOMNode(this);
ReactDOM.unmountComponentAtNode(mountNode);
}