Stuck on 2/4 Apply PropTypes


#1

<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>

Select BestSeller.js.

Give the BestSeller component class a propTypes property. For now, set propTypes equal to an empty object literal.

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>

Why is this code give error?

```

propTypes: {
title: React.PropTypes.string,
author: React.PropTypes.string,
weeksOnList: React.PropTypes.string
},

<do not remove the three backticks above>

#2

Because it is asking for an empty object literal, so you do not need anything between the curly braces.


#3

i cleared inside still can’t get pass


#4

What browser are you using? Maybe try a different browser. Sometimes that works for me when I cannot get past a lesson, but have the correct code.


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.