REACT JS Error

Guys why Do I get the Error Under My Function Parameter even if the result shows Up correctly
No description
5 Replies
Jochem
Jochem•6mo ago
Hover over it What does it say?
GHOST 👻
GHOST 👻•6mo ago
No description
Jochem
Jochem•6mo ago
you might get some more info by clicking that link
GHOST 👻
GHOST 👻•6mo ago
he actually add a simple comment when trying to solve the problem But I think its not the best practice thou like overriding the error or disabling some functions
celine
celine•6mo ago
You forgot to import proptypes module import PropTypes from 'prop-types'; And also there's no validation for the prop: i.e: Content.propTypes = { creatorname: PropTypes.string.isRequired, }; For more information on this you can read https://react.dev/reference/react/Component#static-defaultprops
Component – React
The library for web and native user interfaces
Want results from more Discord servers?
Add your server
More Posts