title: React w/ Service Worker & Push Notifications
body: <p>Some initial considerations:</p>
  
  <pre><code>"react": "^16.8.2",
  "react-scripts": "2.1.5"
  </code></pre>
  
  <p>I have created a new react app and I need to implement Push Notifications.
  Following <a href="https://developers.google.com/web/fundamentals/codelabs/push-notifications/" rel="noreferrer">this</a> tutorial, I was able to get up and running in 5 minutes, but now I have to implement the same strategy (kinda) into a react app.</p>
  
  <p>The problem I am facing is that I am able to subscribe to the Notification API, but I'm not sure how to edit the <code>service-worker.js</code> file to add an event listener to catch the <code>push</code> event (<code>Handle a Push Event</code> chapter in the google guide)</p>