Relative Content

Tag Archive for reactjsjsontypescriptcomponentslazy-loading

How to prevent a React component from freezing the page after loading?

I am using the following library uiwjs/react-json-view, it is the typical library to view json. The issue is that I want it to load a large json. But when it does, it freezes the page in the process. I have already used Suspense and Lazy from react, to load the component, and it does its job. The thing is that it seems that after the component appears, it starts processing the json, causing the page to freeze. Does anyone know what I could do?