React application slow in performance

Being a React developer, I am trying to make an application in React for rendering a tree-like structure which can be expanded and collapsed on user input, although I have managed to get the app working as I want, but, the performance is quite slow. I am not sure if this is because of the nature of the application, the React component or my ignorance of the framework.

As a quick guess on this without seeing your code it could be your use of keys:

If you are not using keys correctly it could be causing the entire app to have to mutate each child when a change is made. So it could be as simple as fixing this issue.

That would be your starting point.


Indeed. Could you put something up on GitHub for us to have a play around with?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.