The most common data structure to choose for lists in JS is an array. That might not be the best data structure for state management.
medium.com