freeCodeCamp Challenge Guide: Getting Started with React Redux

Getting Started with React Redux


Hints

Hint 1

Remember to pass parameter props to constructor

Hint 2

Remember the super(props) in constructor


Solutions

Solution 1 (Click to Show/Hide)
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 />
  }
};
1 Like