import React from 'react';
class App extends React.Component {
render() {
return (
<div>
<h1>Header</h1>
<h2>Content</h2>
<p>This is the content!!!</p>
</div>
);
}
}
export default App;
when i check other sources i see the import statement at the beginning of a component . must i alwyas do that? it does not seem to be in the first part of the book. also what is the purpose of expor default statement? is there an alternative syntax for the export default statement in the book?