{"id":3015,"date":"2019-11-20T22:06:18","date_gmt":"2019-11-20T22:06:18","guid":{"rendered":"https:\/\/ionicframework.com\/blog\/?p=3015"},"modified":"2019-11-20T22:16:39","modified_gmt":"2019-11-20T22:16:39","slug":"progressive-web-apps-in-ionic-react","status":"publish","type":"post","link":"https:\/\/ionic.io\/blog\/progressive-web-apps-in-ionic-react","title":{"rendered":"Progressive Web Apps in Ionic React"},"content":{"rendered":"<p>With the launch of Ionic React a few weeks back, the reception from the community has been incredible. We\u2019re thrilled that so many of you are excited to use Ionic React, and I myself was excited to try React a bit more. Given that I spend most of my time with Angular, it was fun to see what another framework could offer as I learned how to &#8220;think&#8221; in React.<\/p>\n<p>With that in mind, I wanted to share my experience rebuilding a personal demo app that I have built in Angular (<a href=\"http:\/\/startrack-ng.web.app\">Star Track<\/a>) and rebuild it in React. For this exercise, I\u2019m going to focus on how I created a Progressive Web App (or PWA) with Ionic React. Let&#8217;s dive in!<\/p>\n<p><!--more--><\/p>\n<p>If you would like to see the final results, you can see an early version of <a href=\"https:\/\/gifted-volhard-a0566f.netlify.com\/\">Star Track React<\/a> here.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"3360\" height=\"2100\" data-src=\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2019\/11\/Screen-Shot-2019-11-20-at-5.00.24-PM-2.png\" alt=\"\" class=\"aligncenter size-full wp-image-3020 lazyload\" data-srcset=\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2019\/11\/Screen-Shot-2019-11-20-at-5.00.24-PM-2.png 3360w, https:\/\/ionic.io\/blog\/wp-content\/uploads\/2019\/11\/Screen-Shot-2019-11-20-at-5.00.24-PM-2-300x188.png 300w, https:\/\/ionic.io\/blog\/wp-content\/uploads\/2019\/11\/Screen-Shot-2019-11-20-at-5.00.24-PM-2-768x480.png 768w, https:\/\/ionic.io\/blog\/wp-content\/uploads\/2019\/11\/Screen-Shot-2019-11-20-at-5.00.24-PM-2-1024x640.png 1024w\" data-sizes=\"auto, (max-width: 3360px) 100vw, 3360px\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" style=\"--smush-placeholder-width: 3360px; --smush-placeholder-aspect-ratio: 3360\/2100;\" \/><noscript><img loading=\"lazy\" decoding=\"async\" width=\"3360\" height=\"2100\" src=\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2019\/11\/Screen-Shot-2019-11-20-at-5.00.24-PM-2.png\" alt=\"\" class=\"aligncenter size-full wp-image-3020\" srcset=\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2019\/11\/Screen-Shot-2019-11-20-at-5.00.24-PM-2.png 3360w, https:\/\/ionic.io\/blog\/wp-content\/uploads\/2019\/11\/Screen-Shot-2019-11-20-at-5.00.24-PM-2-300x188.png 300w, https:\/\/ionic.io\/blog\/wp-content\/uploads\/2019\/11\/Screen-Shot-2019-11-20-at-5.00.24-PM-2-768x480.png 768w, https:\/\/ionic.io\/blog\/wp-content\/uploads\/2019\/11\/Screen-Shot-2019-11-20-at-5.00.24-PM-2-1024x640.png 1024w\" sizes=\"auto, (max-width: 3360px) 100vw, 3360px\" \/><\/noscript><\/p>\n<h2>App Manifest<\/h2>\n<p>Adding the App Manifest was fairly straightforward.<\/p>\n<p>If you\u2019ve built with Angular, you\u2019re probably used to running <code>ng add @angular\/pwa<\/code> and having one created for you. The logic here is that not everyone may need a PWA.<\/p>\n<p>With Create React App (CRA), however, a manifest and placeholder icons are provided out-of-the-box. This was nice, as I could quickly jump in there, make the edits I needed, and get back to building my app.<\/p>\n<h2>Service Workers<\/h2>\n<p>Service Workers are an essential part of the PWA experience. Without one, our apps would not be able to work offline or be resilient to flaky network connections.<\/p>\n<p>In Angular, we work with the <code>@angular\/service-worker<\/code> package to create and interact with our Service Worker. This allows us to express our caching strategy for our app&#8217;s resources in a JSON files.<\/p>\n<p>So how does this work in React?<\/p>\n<p>Out-of-the-box, Create React App (CRA) utilized the <a href=\"https:\/\/developers.google.com\/web\/tools\/workbox\">Workbox library<\/a> from the Chrome team. By using Workbox&#8217;s webpack plugin, we&#8217;re able to get a complete list of all the resources our app needs and create a precache with a hash revision. This is done automatically at build time so there&#8217;s no need for us to configure this.<\/p>\n<p>But we are putting the pig before the pen here, as we need to opt-in to Service Workers in our main <code>index.ts<\/code> file. By default CRA has Service Workers disabled due to their advanced nature. The idea being that devs are not used to their content caching. While I disagree with this, I do appreciate that the team has noted their reason on the <a href=\"https:\/\/create-react-app.dev\/docs\/making-a-progressive-web-app#why-opt-in\">CRA docs<\/a>.<\/p>\n<p>To opt-in and register our Service Worker, we can call <code>serviceWorker.register()<\/code>:<\/p>\n<pre><code class=\"language-javascript\">\/\/index.ts\n\nimport React from &#039;react&#039;;\nimport ReactDOM from &#039;react-dom&#039;;\nimport App from &#039;.\/App&#039;;\nimport * as serviceWorker from &#039;.\/serviceWorker&#039;;\n\nReactDOM.render(&lt;App \/&gt;, document.getElementById(&#039;root&#039;));\n\n\/\/ If you want your app to work offline and load faster, you can change\n\/\/ unregister() to register() below. Note this comes with some pitfalls.\n\/\/ Learn more about service workers: https:\/\/bit.ly\/CRA-PWA\n\/\/ serviceWorker.unregister();\nserviceWorker.register();\n<\/code><\/pre>\n<p>With this call, we&#8217;re able to register the Service Worker that the build scripts will create for us.<\/p>\n<h2>Handling updates<\/h2>\n<p>Since CRA internalizes a lot of moving pieces with Service Workers, I was worried that I would not have a mechanism for handling updates. But digging into the registration function, there&#8217;s an optional <code>config<\/code> parameter that could be passed that could handle this. The <code>config<\/code> argument is an object that can accept an <code>onSuccess<\/code> and <code>onUpdate<\/code> key, with a callback function as their values.<\/p>\n<p>From this, we can modify our original <code>register<\/code> call to pass a <code>config<\/code> object:<\/p>\n<pre><code class=\"language-javascript\">register({\n  onUpdate: async (registration: ServiceWorkerRegistration) =&gt; {\n    await registration.update();\n  }\n});\n<\/code><\/pre>\n<p>Not a whole lot of magic happening here, but it&#8217;s a bit clearer when looking at the registration function<\/p>\n<pre><code class=\"language-javascript\">if (navigator.serviceWorker.controller) {\n  \/\/ At this point, the updated precached content has been fetched,\n  \/\/ but the previous service worker will still serve the older\n  \/\/ content until all client tabs are closed.\n  console.log( &#039;New content is available and will be used when all tabs for this page are closed. See https:\/\/bit.ly\/CRA-PWA.&#039;);\n\n  \/\/ Execute callback\n  if (config &amp;&amp; config.onUpdate) {\n    config.onUpdate(registration);\n  }\n}\n<\/code><\/pre>\n<p>When our Service Worker has registered, we can hook into the lifecycles and trigger an update when the new content has been cached.<\/p>\n<h2>Parting Thoughts<\/h2>\n<p>While focusing mainly on Service Worker and App Manifest, I&#8217;m still diving deep into PWAs with React. With what I (and the rest of the Ionic team) learn while we build more and more Ionic React apps, we&#8217;ll be able to provide the best suggestions for delivering fast, powerful, feature-rich apps with React. Cheers \ud83c\udf7b!<\/p>\n<ul>\n<li><a href=\"https:\/\/startrack-ng.web.app\">Star Track (Angular)<\/a><\/li>\n<li><a href=\"https:\/\/gifted-volhard-a0566f.netlify.com\">Star Track (React)<\/a><\/li>\n<li><a href=\"https:\/\/ionicframework.com\/docs\/react\/pwa\">Ionic React PWA Docs<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>With the launch of Ionic React a few weeks back, the reception from the community has been incredible. We\u2019re thrilled that so many of you are excited to use Ionic React, and I myself was excited to try React a bit more. Given that I spend most of my time with Angular, it was fun [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":3019,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"publish_to_discourse":"","publish_post_category":"","wpdc_auto_publish_overridden":"","wpdc_topic_tags":"","wpdc_pin_topic":"","wpdc_pin_until":"","discourse_post_id":"","discourse_permalink":"","wpdc_publishing_response":"","wpdc_publishing_error":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1,121,123,124],"tags":[3,22,33,136,35],"class_list":["post-3015","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-all","category-engineering","category-perspectives","category-tutorials","tag-ionic","tag-progressive-web-apps","tag-pwa","tag-react","tag-service-workers"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v23.0 (Yoast SEO v23.0) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Progressive Web Apps in Ionic React - Ionic Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ionic.io\/blog\/progressive-web-apps-in-ionic-react\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Progressive Web Apps in Ionic React\" \/>\n<meta property=\"og:description\" content=\"With the launch of Ionic React a few weeks back, the reception from the community has been incredible. We\u2019re thrilled that so many of you are excited to use Ionic React, and I myself was excited to try React a bit more. Given that I spend most of my time with Angular, it was fun [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ionic.io\/blog\/progressive-web-apps-in-ionic-react\" \/>\n<meta property=\"og:site_name\" content=\"Ionic Blog\" \/>\n<meta property=\"article:published_time\" content=\"2019-11-20T22:06:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-11-20T22:16:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2019\/11\/progressive-web-apps-ionic-react.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1600\" \/>\n\t<meta property=\"og:image:height\" content=\"880\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Mike Hartington\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@mhartington\" \/>\n<meta name=\"twitter:site\" content=\"@ionicframework\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mike Hartington\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/ionic.io\/blog\/progressive-web-apps-in-ionic-react#article\",\"isPartOf\":{\"@id\":\"https:\/\/ionic.io\/blog\/progressive-web-apps-in-ionic-react\"},\"author\":{\"name\":\"Mike Hartington\",\"@id\":\"https:\/\/ionic.io\/blog\/#\/schema\/person\/c8c92b04d526adb925ea514c619a267b\"},\"headline\":\"Progressive Web Apps in Ionic React\",\"datePublished\":\"2019-11-20T22:06:18+00:00\",\"dateModified\":\"2019-11-20T22:16:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/ionic.io\/blog\/progressive-web-apps-in-ionic-react\"},\"wordCount\":632,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/ionic.io\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/ionic.io\/blog\/progressive-web-apps-in-ionic-react#primaryimage\"},\"thumbnailUrl\":\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2019\/11\/progressive-web-apps-ionic-react.png\",\"keywords\":[\"Ionic\",\"Progressive Web Apps\",\"PWA\",\"react\",\"service workers\"],\"articleSection\":[\"All\",\"Engineering\",\"Perspectives\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/ionic.io\/blog\/progressive-web-apps-in-ionic-react#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ionic.io\/blog\/progressive-web-apps-in-ionic-react\",\"url\":\"https:\/\/ionic.io\/blog\/progressive-web-apps-in-ionic-react\",\"name\":\"Progressive Web Apps in Ionic React - Ionic Blog\",\"isPartOf\":{\"@id\":\"https:\/\/ionic.io\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/ionic.io\/blog\/progressive-web-apps-in-ionic-react#primaryimage\"},\"image\":{\"@id\":\"https:\/\/ionic.io\/blog\/progressive-web-apps-in-ionic-react#primaryimage\"},\"thumbnailUrl\":\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2019\/11\/progressive-web-apps-ionic-react.png\",\"datePublished\":\"2019-11-20T22:06:18+00:00\",\"dateModified\":\"2019-11-20T22:16:39+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/ionic.io\/blog\/progressive-web-apps-in-ionic-react#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ionic.io\/blog\/progressive-web-apps-in-ionic-react\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ionic.io\/blog\/progressive-web-apps-in-ionic-react#primaryimage\",\"url\":\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2019\/11\/progressive-web-apps-ionic-react.png\",\"contentUrl\":\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2019\/11\/progressive-web-apps-ionic-react.png\",\"width\":1600,\"height\":880},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ionic.io\/blog\/progressive-web-apps-in-ionic-react#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/ionic.io\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Progressive Web Apps in Ionic React\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ionic.io\/blog\/#website\",\"url\":\"https:\/\/ionic.io\/blog\/\",\"name\":\"ionic.io\/blog\",\"description\":\"Build amazing native and progressive web apps with the web\",\"publisher\":{\"@id\":\"https:\/\/ionic.io\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ionic.io\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/ionic.io\/blog\/#organization\",\"name\":\"Ionic\",\"url\":\"https:\/\/ionic.io\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ionic.io\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2020\/10\/white-on-color.png\",\"contentUrl\":\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2020\/10\/white-on-color.png\",\"width\":1920,\"height\":854,\"caption\":\"Ionic\"},\"image\":{\"@id\":\"https:\/\/ionic.io\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/ionicframework\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/ionic.io\/blog\/#\/schema\/person\/c8c92b04d526adb925ea514c619a267b\",\"name\":\"Mike Hartington\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ionic.io\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2018\/08\/mike-headshot-2-smaller-150x150.png\",\"contentUrl\":\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2018\/08\/mike-headshot-2-smaller-150x150.png\",\"caption\":\"Mike Hartington\"},\"description\":\"Director of Developer Relations\",\"sameAs\":[\"https:\/\/twitter.com\/mhartington\",\"https:\/\/x.com\/mhartington\"],\"url\":\"https:\/\/ionic.io\/blog\/author\/mike\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Progressive Web Apps in Ionic React - Ionic Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ionic.io\/blog\/progressive-web-apps-in-ionic-react","og_locale":"en_US","og_type":"article","og_title":"Progressive Web Apps in Ionic React","og_description":"With the launch of Ionic React a few weeks back, the reception from the community has been incredible. We\u2019re thrilled that so many of you are excited to use Ionic React, and I myself was excited to try React a bit more. Given that I spend most of my time with Angular, it was fun [&hellip;]","og_url":"https:\/\/ionic.io\/blog\/progressive-web-apps-in-ionic-react","og_site_name":"Ionic Blog","article_published_time":"2019-11-20T22:06:18+00:00","article_modified_time":"2019-11-20T22:16:39+00:00","og_image":[{"width":1600,"height":880,"url":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2019\/11\/progressive-web-apps-ionic-react.png","type":"image\/png"}],"author":"Mike Hartington","twitter_card":"summary_large_image","twitter_creator":"@mhartington","twitter_site":"@ionicframework","twitter_misc":{"Written by":"Mike Hartington","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ionic.io\/blog\/progressive-web-apps-in-ionic-react#article","isPartOf":{"@id":"https:\/\/ionic.io\/blog\/progressive-web-apps-in-ionic-react"},"author":{"name":"Mike Hartington","@id":"https:\/\/ionic.io\/blog\/#\/schema\/person\/c8c92b04d526adb925ea514c619a267b"},"headline":"Progressive Web Apps in Ionic React","datePublished":"2019-11-20T22:06:18+00:00","dateModified":"2019-11-20T22:16:39+00:00","mainEntityOfPage":{"@id":"https:\/\/ionic.io\/blog\/progressive-web-apps-in-ionic-react"},"wordCount":632,"commentCount":0,"publisher":{"@id":"https:\/\/ionic.io\/blog\/#organization"},"image":{"@id":"https:\/\/ionic.io\/blog\/progressive-web-apps-in-ionic-react#primaryimage"},"thumbnailUrl":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2019\/11\/progressive-web-apps-ionic-react.png","keywords":["Ionic","Progressive Web Apps","PWA","react","service workers"],"articleSection":["All","Engineering","Perspectives","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/ionic.io\/blog\/progressive-web-apps-in-ionic-react#respond"]}]},{"@type":"WebPage","@id":"https:\/\/ionic.io\/blog\/progressive-web-apps-in-ionic-react","url":"https:\/\/ionic.io\/blog\/progressive-web-apps-in-ionic-react","name":"Progressive Web Apps in Ionic React - Ionic Blog","isPartOf":{"@id":"https:\/\/ionic.io\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ionic.io\/blog\/progressive-web-apps-in-ionic-react#primaryimage"},"image":{"@id":"https:\/\/ionic.io\/blog\/progressive-web-apps-in-ionic-react#primaryimage"},"thumbnailUrl":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2019\/11\/progressive-web-apps-ionic-react.png","datePublished":"2019-11-20T22:06:18+00:00","dateModified":"2019-11-20T22:16:39+00:00","breadcrumb":{"@id":"https:\/\/ionic.io\/blog\/progressive-web-apps-in-ionic-react#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ionic.io\/blog\/progressive-web-apps-in-ionic-react"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ionic.io\/blog\/progressive-web-apps-in-ionic-react#primaryimage","url":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2019\/11\/progressive-web-apps-ionic-react.png","contentUrl":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2019\/11\/progressive-web-apps-ionic-react.png","width":1600,"height":880},{"@type":"BreadcrumbList","@id":"https:\/\/ionic.io\/blog\/progressive-web-apps-in-ionic-react#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ionic.io\/blog"},{"@type":"ListItem","position":2,"name":"Progressive Web Apps in Ionic React"}]},{"@type":"WebSite","@id":"https:\/\/ionic.io\/blog\/#website","url":"https:\/\/ionic.io\/blog\/","name":"ionic.io\/blog","description":"Build amazing native and progressive web apps with the web","publisher":{"@id":"https:\/\/ionic.io\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ionic.io\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/ionic.io\/blog\/#organization","name":"Ionic","url":"https:\/\/ionic.io\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ionic.io\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2020\/10\/white-on-color.png","contentUrl":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2020\/10\/white-on-color.png","width":1920,"height":854,"caption":"Ionic"},"image":{"@id":"https:\/\/ionic.io\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/ionicframework"]},{"@type":"Person","@id":"https:\/\/ionic.io\/blog\/#\/schema\/person\/c8c92b04d526adb925ea514c619a267b","name":"Mike Hartington","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ionic.io\/blog\/#\/schema\/person\/image\/","url":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2018\/08\/mike-headshot-2-smaller-150x150.png","contentUrl":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2018\/08\/mike-headshot-2-smaller-150x150.png","caption":"Mike Hartington"},"description":"Director of Developer Relations","sameAs":["https:\/\/twitter.com\/mhartington","https:\/\/x.com\/mhartington"],"url":"https:\/\/ionic.io\/blog\/author\/mike"}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2019\/11\/progressive-web-apps-ionic-react.png","_links":{"self":[{"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/posts\/3015","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/comments?post=3015"}],"version-history":[{"count":0,"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/posts\/3015\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/media\/3019"}],"wp:attachment":[{"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/media?parent=3015"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/categories?post=3015"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/tags?post=3015"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}