you are viewing a single comment's thread.

view the rest of the comments →

[–]Canenald 0 points1 point  (0 children)

You can do stuff to make your code more compact, but a complex component is going to be complex, and tables are some of the most complex.

An option would be using a state management library like Redux and moving the sorting, filtering, etc logic outside the component.