This example is from the docs for Stimulusjs. I've been able to find documentation on ES6 static methods, but this does not look like a method. Or is this some kind of shorthand? Why is there a 'static' key word for a variable?
export default class extends Controller {
static targets = [ "name" ]
greet() {
const element = this.nameTarget
const name = element.value
console.log(`Hello, ${name}!`)
}
}