class App extends React.Component {
render() {
return (
<>
<h1>{this.props.headerProps}</h1>
<h2>{this.props.contentProps}</h2>
</>
);
}
}
App.defaultProps = {
headerProps : "Header Props",
contentProps: "Content PROPS"
}
ReactDOM.render(
<App />,
document.getElementById ('mountNode'));