vilvaathibanpb/react-rating-tooltip

Unknown: `key` is not a prop. Trying to access it will result in `undefined`

Opened this issue · 2 comments

index.js:1 Warning: Unknown: key is not a prop. Trying to access it will result in undefined being returned. If you need to access the same value within the child component, you should pass it as a different prop.

my Code - dynamic rating el.content.score
i try index={el.id} to same problem

const Rating = ({el}: any) => { return ( <RatingTooltip key={el.id} max={5} defaultRating={el.content.score} disabled ActiveComponent={ <i className="mdi mdi-star text-primary" /> } InActiveComponent={ <i className="mdi mdi-star-outline text-muted" /> } readonly={true} /> ); };

Hey @Denisphuket , do you wanna try sending a fix to it ?