feat(new team contract): digitized team new section discussed on saturday
This commit is contained in:
@ -87,6 +87,28 @@ function exampleFunct2(inputVar) {
|
||||
|
||||
### Svelte/SvelteKit
|
||||
|
||||
```html
|
||||
<script>
|
||||
// imports, runes and javascript/typescript functions
|
||||
let { exampleProp } = $props();
|
||||
let exmapleState = $state(intialValue);
|
||||
let exampleDerivedState = $derived(exampleState + exampleProp);
|
||||
</script>
|
||||
|
||||
<p>Html tags go here</p>
|
||||
<div>{exmapleDerivedState}</div>
|
||||
|
||||
<style>
|
||||
div {
|
||||
/* scoped stying (only effects the tags in this .svelte file) */
|
||||
}
|
||||
p {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
}
|
||||
</style>
|
||||
```
|
||||
|
||||
<!-- svelte is not a default preview -->
|
||||
|
||||
```html
|
||||
|
Reference in New Issue
Block a user