Quantcast
Channel: Active questions tagged svelte - Stack Overflow
Viewing all articles
Browse latest Browse all 1541

Can I use React components in Svelte?

$
0
0

I am really new to Svelte, but cannot find answer to my question anywhere.

I am trying to use this React component in Svelte:https://developer.microsoft.com/en-us/fabric#/controls/web/stack(I guess it could be any React component and it would be the same problem)

However whenever i add it the entire app turns Blank.

Is it at all possible to import react components, if yes, how?

I have tried just to import it - which just destroys the app.

<script>    import { Stack, IStackProps } from 'office-ui-fabric-react/lib/Stack';    let name = 'world';</script><h1>Hello {name}!</h1><input type="text" bind:value={name}/><Stack horizontal tokens={{ childrenGap: 50 }}  > <div>test</div></Stack>

Viewing all articles
Browse latest Browse all 1541

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>