convert app function to class component react native

JavaScript
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>
    );
  }
}
Source

Also in JavaScript: