I am getting an interesting warning message in my console. My warning message is: Warning: Functions are not valid as a React child. This may happen if you return a Component instead of from render. Or maybe you meant to call this function rather than return it.
What does this mean?
Here is my return code in my application:
render() {
return (
<Container>
<Row className="mt-2">
<Col md={4} className="pt-0">
<h2>Upload Timeframes</h2>
</Col>
<Col className="text-right" md={8}>
<Button onClick={() => this.setModalShow('create_window')}>
Add New Timeframe
</Button>
</Col>
</Row>
{this.activeTimeframeSection}
{this.futureTimeframeSection}
{this.archivedTimeframeSection}
</Container>
)
}