Let’s say I get an API response with content tagged in 5 different categories, and I add 5 buttons in the UI to show / hide based on user selection. What’s the preferred way to do this?
Would each button be tied to a filter function, that then returns a slice of the response, and then hides everything else on the page? Thanks for helping me think through this.