Ruby on Rails
Автор: SupeRails
Загружено: 2024-11-27
Просмотров: 359
We will explore 3 different ways of solving the same problem with StimulusJS.
I think solving the same problem with different approaches is a great way to learn.
0:00 (BAD) Targets and Event listeners
3:40 (BETTER) data-action in view, keyboard logic in stimulus
5:05 (BEST) Stimulus keyboard events
Stimulus keyboard event docs: https://stimulus.hotwired.dev/referen...
Blogpost: https://blog.corsego.com/stimulus-cmd...
Source code: https://github.com/corsego/212-stimul...
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: