creating class component with ES5 would be like this
var someClass = React.createClass({});
and rendering it using
ReactDOM.render(<someClass/>, elementSelector);
creating class component with ES6 somehow be like this
class someAnotherClass extends React.Component{
constructor(){
super();
}
render(){}
}
how do we render with ES6?