mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
065a358c90
Now there are only two folders in `apps/oxlint/fixtures`. We can later create another directory for both integrations (like config walker).
24 lines
463 B
Svelte
24 lines
463 B
Svelte
<script>
|
|
debugger;
|
|
|
|
export let title;
|
|
export let person;
|
|
|
|
// this will update `document.title` whenever
|
|
// the `title` prop changes
|
|
$: document.title = title;
|
|
|
|
$: {
|
|
console.log(`multiple statements can be combined`);
|
|
console.log(`the current title is ${title}`);
|
|
}
|
|
|
|
// this will update `name` when 'person' changes
|
|
$: ({ name } = person);
|
|
|
|
// don't do this. it will run before the previous line
|
|
let name2 = name;
|
|
</script>
|
|
|
|
<h1>Hello {name}!</h1>
|