title: What does registerServiceWorker do in React JS?
body: <p>I'm a newbie in React and I was wondering what is the purpose of registerServiceWorker() in the following code?</p>
  
  <pre><code>import React from 'react';
  import ReactDOM from 'react-dom';
  import App from './App';
  import registerServiceWorker from './registerServiceWorker';
  
  ReactDOM.render(&lt;App /&gt;, document.getElementById('root'));
  registerServiceWorker();
  </code></pre>