Closed AjayDhimanELS closed 3 years ago
@AjayDhimanELS can you please share small snippet of your code?
Got the following in the console while trying the following in my
App.js
:Objects are not valid as a React child (found: object with keys {name}). If you meant to render a collection of children, use an array instead.
Can you please help with it?
Same problem.
Sorry about my late reply, @sshyam-gupta - I tried everything as mentioned here. And as @iravikds is also facing the same issue. Can you please review your code and see if it actually works for you?. Thanks.
Sorry @iravikds @AjayDhimanELS , I think the issue is with the README file.
can u try
hoverComponent={({ value }) => {
return <span>{value.name}{value.value}</span>}}
instead of
hoverComponent={({ value }) => {
return <span>{value}</span>
}}
I will update README soon.
Thanks.
Got the following in the console while trying the following in my
App.js
:Objects are not valid as a React child (found: object with keys {name}). If you meant to render a collection of children, use an array instead.
Can you please help with it?