I\'m currently working on a making a dynamic results table using react. I have a function that preprocesses data differently depending on the input and I used a switch to do