(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{647:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};o.get||o.set?Object.defineProperty(t,n,o):t[n]=e[n]}return t.default=e,t}(n(6)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(681));function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),u(this,c(t).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(t,o.Component),function(e,t,n){t&&l(e.prototype,t),n&&l(e,n)}(t,[{key:"render",value:function(){return o.default.createElement("article",null,o.default.createElement("header",null,o.default.createElement("h1",{className:"mt-4"},"Hot Reloading"),o.default.createElement("hr",null)),o.default.createElement("section",null,o.default.createElement("section",null,o.default.createElement("header",null,o.default.createElement("h3",null,"What is Hot Reloading?")),o.default.createElement("p",null,o.default.createElement("span",{className:"font-weight-bold"},"Hot reloading")," only refreshes the files that were changed without losing the state of the app. For example, if you were four links deep into your navigation and saved a change to some styling, the state would not change, but the new styles would appear on the page without having to navigate back to the page you are on because you would still be on the same page.")),o.default.createElement("hr",null),o.default.createElement("section",null,o.default.createElement("header",null,o.default.createElement("h3",{className:"mt-4"},"How does it work?")),o.default.createElement("p",null,"Hot Reloading is built on top of a feature ",o.default.createElement("a",{href:"https://webpack.github.io/docs/hot-module-replacement-with-webpack.html",target:"_blank",rel:"nofollow noopener"},"Hot Module Replacement"),", or HMR. It was first introduced by Webpack and we implemented it inside of React Native Packager. HMR makes the Packager watch for file changes and send HMR updates to a thin HMR runtime included on the app."),o.default.createElement("p",null,"In a nutshell, the HMR update contains the new code of the JS modules that changed. When the runtime receives them, it replaces the old modules' code with the new one:"),o.default.createElement("p",null,o.default.createElement("img",{src:a.default,className:"mw-100"})))))}}]),t}();t.default=f},681:function(e,t){e.exports="/images/8ef47e49fcb9cb870ba2524210b9a2aa.png"}}]);