Skip to content

Commit

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

<div use:styleable={$component.styles}>
Expand Down

0 comments on commit 2e8bb08

Please sign in to comment.