Skip to content

Instantly share code, notes, and snippets.

@percybolmer
Created September 27, 2022 19:03
Show Gist options
  • Save percybolmer/f373dd3459709ea6a15f1bde8dea6538 to your computer and use it in GitHub Desktop.
Save percybolmer/f373dd3459709ea6a15f1bde8dea6538 to your computer and use it in GitHub Desktop.
--------App.svelte--------
<script>
 import Header from './Header.svelte';
</script>
<Header></Header>
<h1>Subtitle</h1>
<style>
h1 {
color: yellow;
}
</style>
--------Header.svelte--------
<script>
 let title = 'DRY'
</script>
<h1>{title}!</h1>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment