I know that in Past version of React we can make subcomponent like this.
var MyFormComponent = React.createClass({ ... });
MyFormComponent.Row = React.createClass({ ... });
MyFormComponent.Label = React.createClass({ ... });
MyFormComponent.Input = React.createClass({ ... });
But i want to know how we can create subcomponent in React ES6. is it using syntax like
class Row Extends MyFormComponent , Component {}
or is there other way round for this approach?