rails8-memoapp/app/javascript/controllers/hello_controller.js

8 lines
159 B
JavaScript
Raw Normal View History

2025-02-24 22:51:13 +09:00
import { Controller } from "@hotwired/stimulus";
2025-02-20 22:46:52 +09:00
export default class extends Controller {
connect() {
2025-02-24 22:51:13 +09:00
this.element.textContent = "Hello World!";
2025-02-20 22:46:52 +09:00
}
}