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

Tommy Gebru
Tommy Gebru
30,164 Points

Javascript quiz question error, not checking answer for camelCase

Fill in the code to ensure the property “name” is a required string for the Player Component:

function Player(props) {
  // …
}
Player.propTypes = {
  name: //YOUR ANSWER HERE ;

};  

The answer is: React.PropTypes.string.isRequired but any variation of these words work without uppercase letters react.proptypes.string.isrequired passes just as well

1 Answer

Steven Parker
Steven Parker
231,269 Points

The forum is a great place to get help from other students, but may not be the most expedient (or evpen certain) way to contact the staff.