<SvelteComponent this={First} > cant able to create Constructor
arpit-krazybee
Posted on July 30, 2019
I am trying to merge my app with the basic app but it keep on showing this error
SvelteComponent.componentDidMount
node_modules/react-svelte-component/dist/index.es.js:61
58 | constructor = _a.this,
59 | props = __rest(_a, ["this"]);
60 |
61 | this.instance = new constructor({
| ^ 62 | target: this.container.current,
63 | props: props
64 | });
I created the basic counter ReactApp into that i was just added the . svelte file and tried to load it using <SwelteComponent this={First(svelte) file} . I already imported
import SvelteComponent from 'react-svelte-component';
import First from './First.svelte';
please help someone
Posted on July 30, 2019
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.