text: import { Controller } from 'stimulus'
  
  export default class extends Controller {
  
    load () {
      this.element.querySelector('.button').className += ' is-loading'
      fetch(this.data.get('url'), { credentials: 'same-origin' })
        .then(response => response.text())
        .then(html => {
          this.element.style.display = 'none'
          this.element.closest('.container').innerHTML += html
        })
    }
  }
  