A React application that allows you to write Svelte code in a textarea and see it compiled and rendered in real-time.
git clone https://github.com/yourusername/svelte-ts-compiler.git
cd svelte-ts-compiler
npm install
# or
yarn
npm run dev
# or
yarn dev
http://localhost:3000
<script>
let count = 0;
function increment() {
count += 1;
}
</script>
<button on:click={increment}>
Count: {count}
</button>
src/
- Source codeutils/
- Utility functionssvelteCompiler.ts
- Functions for compiling and rendering Svelte componentsApp.tsx
- Main React componentApp.css
- Styles for the main componentmain.tsx
- Entry pointindex.css
- Global stylesnpm run dev
- Start the development servernpm run build
- Build the application for productionnpm run preview
- Preview the production buildnpm run lint
- Run ESLintnpm run format
- Format the code with PrettierThis project is licensed under the MIT License - see the LICENSE file for details.