When I bootstrap the Application , there are two Errors I found in my console of browser.
A semicolon is required after a class property.
The first problem is about semicolons. The JS specification defines that a semicolon must be after a class property. In current Babel v6.3 , It doesn't auto-prefix this.
Warning: Failed propType.
When using the @connect decorator , class Home is decorated as a ConnectDecorator.
When setting Home.propTypes, we're actually setting these prop types on the Connector, not on your Info component. So React is enforcing the props in the wrong place!
Don't use inheritance please :-) said by Dan out of here.
When I bootstrap the Application , there are two Errors I found in my console of browser.
A semicolon is required after a class property.
The first problem is about semicolons. The JS specification defines that a semicolon must be after a class property. In current Babel v6.3 , It doesn't auto-prefix this.
Warning: Failed propType.
When using the
@connect
decorator , class Home is decorated as aConnectDecorator
. When setting Home.propTypes, we're actually setting these prop types on the Connector, not on your Info component. So React is enforcing the props in the wrong place! Don't use inheritance please :-) said by Dan out of here.