Justin Ridgewell f8ab9466d3
Move subclass inheritance to end (#7772)
We were using `Object.create` to setup the prototype chain at the start of the class definition, which lead to #7771.

I was a bit worried about a speed hit, but it seems everyone optimizes the two patterns the same way.
https://jsbench.github.io/#f9fca52407643d96458a35763b201215

Fixes #7771.
2018-04-21 17:31:44 -04:00

35 lines
804 B
JavaScript

var _ref =
/*#__PURE__*/
<div className="navbar-header">
<a className="navbar-brand" href="/">
<img src="/img/logo/logo-96x36.png" />
</a>
</div>;
let App =
/*#__PURE__*/
function (_React$Component) {
"use strict";
function App() {
babelHelpers.classCallCheck(this, App);
return babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(App).apply(this, arguments));
}
babelHelpers.createClass(App, [{
key: "render",
value: function render() {
const navbarHeader = _ref;
return <div>
<nav className="navbar navbar-default">
<div className="container">
{navbarHeader}
</div>
</nav>
</div>;
}
}]);
babelHelpers.inherits(App, _React$Component);
return App;
}(React.Component);