サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
買ってよかったもの
stimulus.hotwired.dev
The Origin of Stimulus We write a lot of JavaScript at Basecamp, but we don’t use it to create “JavaScript applications” in the contemporary sense. All our applications have server-side rendered HTML at their core, then add sprinkles of JavaScript to make them sparkle. This is the way of the majestic monolith. Basecamp runs across half a dozen platforms, including native mobile apps, with a single
Sprinkle your HTML with controller, target, and action attributes: <!--HTML from anywhere--> <div data-controller="hello"> <input data-hello-target="name" type="text"> <button data-action="click->hello#greet"> Greet </button> <span data-hello-target="output"> </span> </div> Write a compatible controller and watch Stimulus bring it to life: // hello_controller.js import { Controller } from "stimulu
このページを最初にブックマークしてみませんか?
『Stimulus: A modest JavaScript framework for the HTML you already have.』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く