I think you’re a bit confused with the syntax. You need to pass props to the constructor. Then within the constructor pass props to super and set this.state. A passing solution would be:
class DisplayMessages extends React.Component {
// change code below this line
constructor(props){
super(props);
this.state = {
input:"",
messages:[]
}
}
// change code above this line
render() {
return <div />
}
};
Your code has been blurred out to avoid spoiling a full working solution for other campers who may not yet want to see a complete solution. In the future, try to stick with just giving hints and suggestions or related examples instead of just posting a full working solution.