Solution 1 (Click to Show/Hide)
```javascript
class MyApp extends React.Component {
constructor(props) {
super(props);
this.state = {
name: "CamperBot"
};
}
render() {
return (
// Here we will call this.state.name in order to pass the value of
CamperBot // to the NavBar component
);
}
}
class Navbar extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
// Since we passed in the CamperBot state value into the the NavBar
component above // the h1 element below will render the value passed
from state
Hello, my name is: {this.props.name}
);
}
}
```