You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 8, 2019. It is now read-only.
function_classCallCheck(instance,Constructor){if(!(instanceinstanceofConstructor)){thrownewTypeError("Cannot call a class as a function");}}
@@ -20,8 +20,8 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen
20
20
21
21
function_inherits(subClass,superClass){if(typeofsuperClass!=="function"&&superClass!==null){thrownewTypeError("Super expression must either be null or a function, not "+typeofsuperClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor: {value: subClass,enumerable: false,writable: true,configurable: true}});if(superClass)Object.setPrototypeOf ? Object.setPrototypeOf(subClass,superClass) : subClass.__proto__=superClass;}
22
22
23
-
varFoo=function(_React$Component){
24
-
_inherits(Foo,_React$Component);
23
+
varFoo=function(_Component){
24
+
_inherits(Foo,_Component);
25
25
26
26
functionFoo(){
27
27
_classCallCheck(this,Foo);
@@ -32,11 +32,16 @@ var Foo = function (_React$Component) {
32
32
_createClass(Foo,[{
33
33
key: 'render',
34
34
value: functionrender(){
35
-
return_react2.default.createElement(_reactIntl.FormattedHTMLMessage,{id: 'foo.bar.baz',defaultMessage: '<h1>Hello World!</h1>',description: 'The default message.'});
function_classCallCheck(instance,Constructor){if(!(instanceinstanceofConstructor)){thrownewTypeError("Cannot call a class as a function");}}
@@ -20,8 +20,8 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen
20
20
21
21
function_inherits(subClass,superClass){if(typeofsuperClass!=="function"&&superClass!==null){thrownewTypeError("Super expression must either be null or a function, not "+typeofsuperClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor: {value: subClass,enumerable: false,writable: true,configurable: true}});if(superClass)Object.setPrototypeOf ? Object.setPrototypeOf(subClass,superClass) : subClass.__proto__=superClass;}
22
22
23
-
varFoo=function(_React$Component){
24
-
_inherits(Foo,_React$Component);
23
+
varFoo=function(_Component){
24
+
_inherits(Foo,_Component);
25
25
26
26
functionFoo(){
27
27
_classCallCheck(this,Foo);
@@ -32,11 +32,16 @@ var Foo = function (_React$Component) {
32
32
_createClass(Foo,[{
33
33
key: 'render',
34
34
value: functionrender(){
35
-
return_react2.default.createElement(_reactIntl.FormattedMessage,{id: 'foo.bar.baz',defaultMessage: 'Hello World!',description: 'The default message.'});
function_classCallCheck(instance,Constructor){if(!(instanceinstanceofConstructor)){thrownewTypeError("Cannot call a class as a function");}}
@@ -20,8 +20,21 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen
20
20
21
21
function_inherits(subClass,superClass){if(typeofsuperClass!=="function"&&superClass!==null){thrownewTypeError("Super expression must either be null or a function, not "+typeofsuperClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor: {value: subClass,enumerable: false,writable: true,configurable: true}});if(superClass)Object.setPrototypeOf ? Object.setPrototypeOf(subClass,superClass) : subClass.__proto__=superClass;}
22
22
23
-
varFoo=function(_React$Component){
24
-
_inherits(Foo,_React$Component);
23
+
varmsgs=(0,_reactIntl.defineMessages)({
24
+
header: {
25
+
id: 'foo.bar.baz',
26
+
defaultMessage: 'Hello World!',
27
+
description: 'The default message'
28
+
},
29
+
content: {
30
+
id: 'foo.bar.biff',
31
+
defaultMessage: 'Hello Nurse!',
32
+
description: 'Another message'
33
+
}
34
+
});
35
+
36
+
varFoo=function(_Component){
37
+
_inherits(Foo,_Component);
25
38
26
39
functionFoo(){
27
40
_classCallCheck(this,Foo);
@@ -32,36 +45,25 @@ var Foo = function (_React$Component) {
0 commit comments