Menu

(Solved) : React App M Building Array Transactions Transaction Transaction Date Would Like Able Toggl Q44105476 . . .

In a React app that I’m building, there is an array oftransactions. Each transaction has a transaction date. what i wouldlike to do is to be able to toggle between “current” (past 30 daysof transactions) and “all” (all transactions). For example, thearray would have transactions from November thru the end ofJanuary. The user would click “current” on the 29th of January todisplay the transactions for the past 30 days–from December 31stthru January 29th. Then, when the user clicks “all”, then all ofthe transactions would be seen–dating back to the ones created inNovember. So, how would I do this?

Expert Answer


Answer to In a React app that I’m building, there is an array of transactions. Each transaction has a transaction date. what i wou…

OR