<script>
  let text = 'Hello World';
  export function updateText() {
    text = 'Bye World';
  }
</script>
{text}