Create a file named “SimpleComponent.svelte” and add the following code:
<script>
const algo = 'hola';
let name = 'carnal';
function algo() {
}
</script>
<h1>Hello {name}!</h1>Run the Svelte component in your development environment.
Create a file named “SimpleComponent.svelte” and add the following code:
<script>
const algo = 'hola';
let name = 'carnal';
function algo() {
}
</script>
<h1>Hello {name}!</h1>Run the Svelte component in your development environment.