React, Data Visualization, JavaScript.
improve performance. But the time slicing part is this 👇 class Dataviz extends React.PureComponent { componentDidMount() { this.showMoreData(); } componentDidUpdate() { this.showMoreData(); } showMoreData = () => { const { N, chunkSize } = this.state; if (N < chunkSize) { requestAnimationFrame(()