I have to fetching and rendering a very long string html data in a react component and it takes long time to render by using
<div dangerouslySetInnerHTML={{ __html: data }}/>
Is there any way to reduce the render time and improve performance or just render the parts that are in viewport?