Skip to content
New issue

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

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

Open
Denisphuket opened this issue Jul 5, 2022 · 2 comments

Comments

@Denisphuket
Copy link

Denisphuket commented Jul 5, 2022

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} /> ); };

@Denisphuket
Copy link
Author

Screenshot at Jul 05 13-20-19

@vilvaathibanpb
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants