feat: add React support

This commit is contained in:
Maël Gangloff
2024-07-19 02:28:05 +02:00
parent 04d9fc20d3
commit 08e13e73c4
12 changed files with 173 additions and 74 deletions

View File

@@ -1,16 +0,0 @@
import { Controller } from '@hotwired/stimulus';
/*
* This is an example Stimulus controller!
*
* Any element with a data-controller="hello" attribute will cause
* this controller to be executed. The name "hello" comes from the filename:
* hello_controller.js -> "hello"
*
* Delete this file or adapt it for your use!
*/
export default class extends Controller {
connect() {
this.element.textContent = 'Hello Stimulus! Edit me in assets/controllers/hello_controller.js';
}
}