What's the correct value to replace the question marks with and why?
RecentProjectsSection.propTypes = {
onClose: React.PropTypes.func.isRequired,
projects: React.PropTypes.array.isRequired,
};
RecentProjectsSection.defaultProps = {
onClose: ?????
projects: [],
};
You need a function, what it does - up to you.
RecentProjectsSection.defaultProps = {
onClose: () => {
// your logic here...
return;
}
projects: [],
};
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With