I\'m trying to use a stateful React component with ES6 but when I define a constructor the constructor will only be called once while the component is rendered multiple time
You SubComponent should be:
class SubComponent extends React.Component { constructor(props) { super(props); console.log("Creating sub component"); } render() { return (count: {this.props.count}); } }