re: 5 things I love about Svelte VIEW POST

FULL DISCUSSION
 

I think your first example is incorrect:
<UserInfo {...user}>

I don't know Svelte so I'm guessing, but shouldn't it be like this?
<User {...user}>?

 

Hi Roger! Actually that line is ok, but thanks to your comment, I found other issue.

My import was:

import Info from './UserInfo.svelte';

instead of

import UserInfo from './UserInfo.svelte';

Because I was using it like so:

<UserInfo {...info}/>
 

Hmm I think you just flipped my example. It's the same error. Regardless I'm glad to have helped and I'm glad I understood it. Both things I was dubious about when I commented.

code of conduct - report abuse