JavaScript React Basics (retired) Thinking in Components PropTypes and DefaultProps

Roudy Antenor
Roudy Antenor
4,124 Points

Errors on every try - even though my code is verbatim with instructor's

Hello, i have copied the code verbatim from video

Application.proptypes = {
  title: React.PropTypes.string.isRequired,
};

Application.defaultProps = {
  title = "Scoreboard",
};

ReactDOM.render(<Application />, document.getElementById('container'));

However i get errors in trying to see it in browser - I am using nothing else then the workspace provided - any thoughts

2 Answers

Hi,

You're using an equal sign instead of a colon when assigning "Scoreboard" to the tittle. Try to change title = "Scoreboard" ,into title : "Scoreboard", and then try again.

Roudy Antenor
Roudy Antenor
4,124 Points

Big Thanks for the headz up..lollll - i did not see that! - Thank you -no problems now:)