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

Warning: A props object containing a "key prop is being spread into JSX: #2581

Open
boldurean opened this issue May 2, 2024 · 0 comments
Open

Comments

@boldurean
Copy link

boldurean commented May 2, 2024

React 18.3.1 shows error when using ResponsiveHeatMap from @nivo/heatmap

Warning: A props object containing a "key" prop is being spread into JSX:
  let props = {key: someKey, offset: ..., stopColor: ...};
  <stop {...props} />
React keys must be passed directly to JSX without using spread:
  let props = {offset: ..., stopColor: ...};
  <stop key={someKey} {...props} />

Steps to reproduce:
Simply try using heatmap example with React 18.3.1

Expected behavior
No errors in the console

Screenshots

Screenshot 2024-05-02 at 15 04 05

Desktop (please complete the following information):

  • OS: MacOs
  • Browser: Google Chrome
  • Version: 124.0.6367.119
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

1 participant