Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
chairoi authored Nov 20, 2023
1 parent a9ae41e commit f3f2210
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Component.svelte
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
<script>
import { getContext } from "svelte"
export let text = "text"
const { styleable } = getContext("sdk")
const component = getContext("component")
function sum() {
return 3 + 2;
return 3 + 2;
}
const result = sum();
export let text = result;
</script>

<div use:styleable={$component.styles}>
This is a new-custom component. 3 + 2 is: {text}.
This is a new-custom component. The result of 3 + 2 is: {text}.
</div>

0 comments on commit f3f2210

Please sign in to comment.