I am seeing a linting react/prop-type error stating that the children in an array as well as the parent value are missing from prop validation. When I add the types I still get the error. I am not sure what I am missing here, here is my current code:
type Props = {
book: {
name: string,
description: any,
},
};
type State = {};
export default class Book extends React.PureComponent<Props, State> {
render() {
const {
name,
description,
} = this.props.book;
return (
<BookModal
name={name}
description={description}
/>
);
}
}
As always thanks for taking a look!