initial commit
This commit is contained in:
12
src/App.svelte
Normal file
12
src/App.svelte
Normal file
@@ -0,0 +1,12 @@
|
||||
<script>
|
||||
const world = 'world'; // edit world and save to see hmr update
|
||||
</script>
|
||||
|
||||
<style>
|
||||
h1 {
|
||||
color: orangered; /* change color an save to see hmr update */
|
||||
}
|
||||
</style>
|
||||
|
||||
<h1>Hello {world}</h1>
|
||||
<p>Open App.svelte in your editor and change something to see HMR in action</p>
|
||||
7
src/index.js
Normal file
7
src/index.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import App from './App.svelte';
|
||||
|
||||
const app = new App({
|
||||
target: document.body,
|
||||
});
|
||||
|
||||
export default app;
|
||||
Reference in New Issue
Block a user