Go ProSign in
Hide playlist

    Update StimulusJS State with Actions, Getters, and Setters

    Andrew Del PreteAndrew Del Prete

    In this lesson I go over the basics of StimulusJS with a simple Counter example. I show how state in Stimulus actually lives in your HTML and how to bind functionality from your controller to your html with data attributes. I also demonstrate how to use actions to update the state and getters and setters to clean up the controller.


    You must be a Member to view code