That does not help me with what i currently have in the code. I do not understand what you are saying is missing. I have looked at the example and that does not tell me how to re-write the code!
The error message is telling you exactly where the typo is. You could try copy/pasting the line from the example and then changing it to fit what you need.
Thanks i got it but I am not understanding why in the first instance propTypes is used un capitalized and then in the function it has to be capitalized?
The reason for the capital “P” in PropTypes is because it’s a specific object imported from the prop-types library, and it should always be capitalized as such.
That’s definitely confusing when it’s used side by side like this. I think because one is a function and one is a Class. It’s a naming convention to use camelCase for functions and PascalCase for Classes: