Browse Source

Fix Chart component to use handleClick (#5786)

main
sushidesu 2 years ago
committed by GitHub
parent
commit
52b7706269
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/content/reference/react/useCallback.md

2
src/content/reference/react/useCallback.md

@ -924,7 +924,7 @@ const Report = memo(function Report({ item }) {
return (
<figure>
<Chart data={data} />
<Chart onClick={handleClick} />
</figure>
);
});

Loading…
Cancel
Save