Filter Various Collections Using Stimulus Targets
lessonDuration 4m 35s
In this lesson, we'll add various inputs that allow a user to filter a collection of data using different sets of data to search through. We'll take advantage of Stimulus `targets` to make it simple to find _which_ collection the user wants to search for. Stimulus also provides a nice way to get **all** `targets` of a certain name as an array. We'll take a look at how that makes life easy when need to iterate over a collection of DOM nodes.