How do I prevent my chart from rerendering? (ReactJS)

1👍

Create a new component for the chart. Prevent the rerender by memoizing it with Higher Order Component memo.

👍:0

Though the issue is not very clear, but You can use useRef which does not
Re-renders the UI.

Leave a comment