0

I have just started to study Svelte. Just curious to know if you can import a Svelte component into a React project. A small hello-world example would suffice.

0

Looks like React can be used as smooth inculcation. And that is why, you can include one react component on existing page.

What about svelte? Maybe you are searching this: https://svelte.dev/docs#Component_format

import App from './App.svelte';

const app = new App({
	target: document.querySelector('#server-rendered-html'),
	hydrate: true
});

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.