Instructor Created Collection

Filter a Collection Using Stimulus


Stimulus is self-described as "A modest JavaScript framework for the HTML you already have".

This collection will show you how to build a Stimulus controller that allows a user to filter a collection of DOM elements based on a variety of inputs.

You'll learn:

  • How to connect a Stimulus controller
  • What an action and a target are, and how they work
  • Modern JavaScript to make filtering a collection simple
  • Techniques to make your code extensible and reusable