We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'title' is missing in props validation react-pug/prop-types 'items' is missing in props validation react-pug/prop-types
i'm getting error in this file collectionpreview jsx
const CollectionPreview = ({ title, items }) => ( <div className="collection-preview"> <h1 className="title">{title.toUpperCase()}</h1> <div className="preview"> {items .filter((item, idx) => idx < 4) .map(({ id, ...OtherItemProps }) => ( <CollectionItem key={id} {...OtherItemProps} /> ))} </div> </div>
in shop component jsx
class ShopPage extends React.Component { state = { collections: SHOP_DATA }; render() { const { collections } = this.state; return ( <div className="shop-page"> {collections.map(({ id, ...CollectionProps }) => ( <CollectionPreview key={id} {...CollectionProps} /> ))} </div> ); } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
'title' is missing in props validation react-pug/prop-types
'items' is missing in props validation react-pug/prop-types
i'm getting error in this file collectionpreview jsx
in shop component jsx
The text was updated successfully, but these errors were encountered: