Skip to content

Commit

Permalink
fix(website): update code samples to Svelte 5
Browse files Browse the repository at this point in the history
  • Loading branch information
hatemhosny committed Dec 13, 2024
1 parent 5994262 commit b125d6c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions website/src/helpers/get-framework-code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ export const getFrameworkCode = (
if (lang === 'ts') {
return `\nconst options: Options = ${stringify(codeOptions)};`;
}
if (lang === 'svelte') {
return `\let options = $state(${stringify(codeOptions)});`;
}
return `\nconst options = ${stringify(codeOptions)};`;
};

Expand Down

0 comments on commit b125d6c

Please sign in to comment.