Skip to content

v5.3.1

Compare
Choose a tag to compare
@GianlucaGuarini GianlucaGuarini released this 28 Feb 19:52
· 173 commits to main since this release
  • Fix #2895
  • Update improve compiler legacy syntax support. The following syntax is now also supported
<my-component>
  <p>{ state.message }</p>
  <button onclick={onClick}>Click Me</button>

  <script>
    const context = this

    context.state = {
      message: ''
    }
    
    context.onBeforeMount = () => {
      context.state.message = 'Hello'
    }

    context.onClick = () => {
      context.update({
        message: 'Goodbye'
      })
    }
  </script>
</my-component>