In react we can use 3 different way to create a component.

1.`const App =()=>{...}`

2. `const App = React.createClass({...})`

3.`class App extends React.Component{...}`

Which the best solution to define a component?