Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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:)