For Component
Hello ya'll, i have a
<For>
component with the following error:
With the following code:
My interfaces look like this:
I plan on passing in an array that looks like this:
Any help would be appreciated - new to SolidJS.7 Replies
Not exactly sure if this is the correct way to do this - but i got rid of the error by doing this:
Most likely you have a whitespace after For?
i dont think so, maybe, it presents the error if i try to call the
JSXElement
directly instead of wrapping it in a div
Actually if you notice
There's a blank space before the function
🤦🏻
let me try that
space counts as a text, which then counts as a child
This doesn't apply to tabs and newline
yeah, you're right
that works
cant believe all it was, was a whitespace character xD
thank you