Step 5
Let's add ListMeetings
component to App
and pass App's state to it as props.
Fist, import ListMeetings
:
import ListMeetings from "./ListMeetings.js";
Next, updated the return statement of the render
method:
- return (
- <div style={{ color: "white" }}>
- {JSON.stringify(this.state.meetings)}
- </div>
- );
+ return <ListMeetings meetings={this.state.meetings} />;