-
Couldn't load subscription status.
- Fork 49.7k
Closed
Description
Default props declared on a base class are not found by inheriting classes in IE10. This was observed in react 0.14.7 and 15.1.0. The example and codepen below should help reproduce.
http://codepen.io/anon/pen/zBxBwV?editors=0011
class TestBase extends React.Component {
constructor(props) {
super(props);
}
}
TestBase.defaultProps = {
message: 'this is a test message',
};
class Test extends TestBase {
constructor(props) {
super(props);
}
render() {
return <div>{this.props.message}</div>;
}
}
ReactDOM.render(
<Test />,
document.querySelector('main')
);Metadata
Metadata
Assignees
Labels
No labels