text: 
            window.__NEXT_REGISTER_PAGE('/', function() {
              var comp = module.exports =
  webpackJsonp([5],{
  
  /***/ 541:
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  /* WEBPACK VAR INJECTION */(function(__resourceQuery) {
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  
  var _regenerator = __webpack_require__(73);
  
  var _regenerator2 = _interopRequireDefault(_regenerator);
  
  var _asyncToGenerator2 = __webpack_require__(63);
  
  var _asyncToGenerator3 = _interopRequireDefault(_asyncToGenerator2);
  
  var _react = __webpack_require__(12);
  
  var _react2 = _interopRequireDefault(_react);
  
  var _MyLayout = __webpack_require__(546);
  
  var _MyLayout2 = _interopRequireDefault(_MyLayout);
  
  var _link = __webpack_require__(540);
  
  var _link2 = _interopRequireDefault(_link);
  
  var _isomorphicUnfetch = __webpack_require__(544);
  
  var _isomorphicUnfetch2 = _interopRequireDefault(_isomorphicUnfetch);
  
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  
  var _jsxFileName = "/Users/raghib/Desktop/github/tv-show/pages/index.js?entry";
  
  
  var Index = function Index(props) {
    return _react2.default.createElement(_MyLayout2.default, {
      __source: {
        fileName: _jsxFileName,
        lineNumber: 6
      }
    }, _react2.default.createElement("h1", {
      __source: {
        fileName: _jsxFileName,
        lineNumber: 7
      }
    }, "Batman TV shows"), _react2.default.createElement("ul", {
      __source: {
        fileName: _jsxFileName,
        lineNumber: 8
      }
    }, props.shows.map(function (_ref) {
      var show = _ref.show;
      return _react2.default.createElement("li", { key: show.id, __source: {
          fileName: _jsxFileName,
          lineNumber: 10
        }
      }, _react2.default.createElement(_link2.default, { as: "/p/" + show.id, href: "/post?id=" + show.id, __source: {
          fileName: _jsxFileName,
          lineNumber: 11
        }
      }, _react2.default.createElement("a", {
        __source: {
          fileName: _jsxFileName,
          lineNumber: 12
        }
      }, show.name)));
    })));
  };
  
  Index.getInitialProps = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee() {
    var res, data;
    return _regenerator2.default.wrap(function _callee$(_context) {
      while (1) {
        switch (_context.prev = _context.next) {
          case 0:
            _context.next = 2;
            return (0, _isomorphicUnfetch2.default)("https://api.tvmaze.com/search/shows?q=batman");
  
          case 2:
            res = _context.sent;
            _context.next = 5;
            return res.json();
  
          case 5:
            data = _context.sent;
  
            console.log("Show data fetched. Count: " + data.length);
  
            return _context.abrupt("return", {
              shows: data
            });
  
          case 8:
          case "end":
            return _context.stop();
        }
      }
    }, _callee, this);
  }));
  
  exports.default = Index;
  
   ;(function register() { /* react-hot-loader/webpack */ if (true) { if (typeof __REACT_HOT_LOADER__ === 'undefined') { return; } if (typeof module.exports === 'function') { __REACT_HOT_LOADER__.register(module.exports, 'module.exports', "/Users/raghib/Desktop/github/tv-show/pages/index.js"); return; } for (var key in module.exports) { if (!Object.prototype.hasOwnProperty.call(module.exports, key)) { continue; } var namedExport = void 0; try { namedExport = module.exports[key]; } catch (err) { continue; } __REACT_HOT_LOADER__.register(namedExport, key, "/Users/raghib/Desktop/github/tv-show/pages/index.js"); } } })();
      (function (Component, route) {
        if (false) return
        if (false) return
  
        var qs = __webpack_require__(85)
        var params = qs.parse(__resourceQuery.slice(1))
        if (params.entry == null) return
  
        module.hot.accept()
        Component.__route = route
  
        if (module.hot.status() === 'idle') return
  
        var components = next.router.components
        for (var r in components) {
          if (!components.hasOwnProperty(r)) continue
  
          if (components[r].Component.__route === route) {
            next.router.update(r, Component)
          }
        }
      })(module.exports.default || module.exports, "/")
    
  /* WEBPACK VAR INJECTION */}.call(exports, "?entry"))
  
  /***/ }),
  
  /***/ 545:
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  
  var _react = __webpack_require__(12);
  
  var _react2 = _interopRequireDefault(_react);
  
  var _link = __webpack_require__(540);
  
  var _link2 = _interopRequireDefault(_link);
  
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  
  var _jsxFileName = "/Users/raghib/Desktop/github/tv-show/components/Header.js";
  
  
  var linkStyle = {
    marginRight: 15
  };
  
  var Header = function Header() {
    return _react2.default.createElement("div", {
      __source: {
        fileName: _jsxFileName,
        lineNumber: 8
      }
    }, _react2.default.createElement(_link2.default, { href: "/", __source: {
        fileName: _jsxFileName,
        lineNumber: 9
      }
    }, _react2.default.createElement("a", { style: linkStyle, __source: {
        fileName: _jsxFileName,
        lineNumber: 10
      }
    }, " Home")), _react2.default.createElement(_link2.default, { href: "/about", __source: {
        fileName: _jsxFileName,
        lineNumber: 12
      }
    }, _react2.default.createElement("a", { style: linkStyle, __source: {
        fileName: _jsxFileName,
        lineNumber: 13
      }
    }, " About")));
  };
  
  exports.default = Header;
  
   ;(function register() { /* react-hot-loader/webpack */ if (true) { if (typeof __REACT_HOT_LOADER__ === 'undefined') { return; } if (typeof module.exports === 'function') { __REACT_HOT_LOADER__.register(module.exports, 'module.exports', "/Users/raghib/Desktop/github/tv-show/components/Header.js"); return; } for (var key in module.exports) { if (!Object.prototype.hasOwnProperty.call(module.exports, key)) { continue; } var namedExport = void 0; try { namedExport = module.exports[key]; } catch (err) { continue; } __REACT_HOT_LOADER__.register(namedExport, key, "/Users/raghib/Desktop/github/tv-show/components/Header.js"); } } })();
  
  /***/ }),
  
  /***/ 546:
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  
  var _react = __webpack_require__(12);
  
  var _react2 = _interopRequireDefault(_react);
  
  var _Header = __webpack_require__(545);
  
  var _Header2 = _interopRequireDefault(_Header);
  
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  
  var _jsxFileName = "/Users/raghib/Desktop/github/tv-show/components/MyLayout.js";
  
  
  var layoutStyle = {
    margin: 20,
    padding: 20,
    border: "1px solid #DDD"
  };
  
  var Layout = function Layout(props) {
    return _react2.default.createElement("div", { style: layoutStyle, __source: {
        fileName: _jsxFileName,
        lineNumber: 10
      }
    }, _react2.default.createElement(_Header2.default, {
      __source: {
        fileName: _jsxFileName,
        lineNumber: 11
      }
    }), props.children);
  };
  
  exports.default = Layout;
  
   ;(function register() { /* react-hot-loader/webpack */ if (true) { if (typeof __REACT_HOT_LOADER__ === 'undefined') { return; } if (typeof module.exports === 'function') { __REACT_HOT_LOADER__.register(module.exports, 'module.exports', "/Users/raghib/Desktop/github/tv-show/components/MyLayout.js"); return; } for (var key in module.exports) { if (!Object.prototype.hasOwnProperty.call(module.exports, key)) { continue; } var namedExport = void 0; try { namedExport = module.exports[key]; } catch (err) { continue; } __REACT_HOT_LOADER__.register(namedExport, key, "/Users/raghib/Desktop/github/tv-show/components/MyLayout.js"); } } })();
  
  /***/ }),
  
  /***/ 547:
  /***/ (function(module, exports, __webpack_require__) {
  
  module.exports = __webpack_require__(541);
  
  
  /***/ })
  
  },[547]);
  //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnVuZGxlcy9wYWdlcy9pbmRleC5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3BhZ2VzPzhmNWU0YzMiLCJ3ZWJwYWNrOi8vLy4vY29tcG9uZW50cy9IZWFkZXIuanM/OGY1ZTRjMyIsIndlYnBhY2s6Ly8vLi9jb21wb25lbnRzL015TGF5b3V0LmpzPzhmNWU0YzMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IExheW91dCBmcm9tIFwiLi4vY29tcG9uZW50cy9NeUxheW91dFwiO1xuaW1wb3J0IExpbmsgZnJvbSBcIm5leHQvbGlua1wiO1xuaW1wb3J0IGZldGNoIGZyb20gXCJpc29tb3JwaGljLXVuZmV0Y2hcIjtcblxuY29uc3QgSW5kZXggPSBwcm9wcyA9PlxuICA8TGF5b3V0PlxuICAgIDxoMT5CYXRtYW4gVFYgc2hvd3M8L2gxPlxuICAgIDx1bD5cbiAgICAgIHtwcm9wcy5zaG93cy5tYXAoKHsgc2hvdyB9KSA9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