This is clearly a svelte newbie question, but I don’t understand why a component doesn’t update the content in a slot …
Let me explain: I am trying to use sveltestrap and re-create the simple button click.
This is what my App.svelte looks like
<script>
import {
Button,
} from 'sveltestrap';
let counter = 0;
function buttonClick(){
counter++
}
<script>
<Button on:click={buttonClick}>{counter}</Button> counter={counter}
The counter gets updated when clicking the button, but I would expect the button text to also get updated, but it doesn’t. Where am I going wrong here?