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

How to use an array from a JS file to a Svelte file

$
0
0

I have a function in a +page.js file that return { props { data } }. Data is an array. However when I try to use it in svelte with

export let data

It says that it's not an arrayWhat should I do ?


Viewing all articles
Browse latest Browse all 1541

Trending Articles



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