title: Close current browser tab on button click, using reactjs
body: <p>Is there a way I can close the current browser tab with a press on the button, using reactjs?
  I've tried <code>window.close()</code> and <code>self.close()</code> but none of the JavaScript methods seem to work.
  I don't want the event of close window in React. I want to close the browser tab itself. <code>window.close()</code> can be used only when <code>window.open()</code> is used.</p>