const App = () => ( <div> <p> test </p> </div> ); // to convert the above to a class component: class App extends Component { render() { return ( <div> <p> test </p> </div> ); } }