Search
Star
Feedback
Setup for Free
ยฉ 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
render(() => { <Component />, element }) throws an error when including props - SolidJS
S
SolidJS
โข
3y ago
โข
5 replies
fragerdaz
render(() => { <Component />, element }) throws an error when including props
render
(
(
)
=
>
{
<Component
/
>
, element
}
)
This works if I only reference the component as
<Component
/
>
However
, I get an error when using
<Component id
=
'xyz
'
/
>
Error
: Uncaught TypeError
: Cannot read properties of undefined
(reading
'firstChild
'
)
SolidJS
Join
Solid is a declarative reactive Javascript library for creating user interfaces.
12,274
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Add props to an element programmatically
S
SolidJS / support
3y ago
Dynamic Component & Props
S
SolidJS / support
17mo ago
Render as element kind
S
SolidJS / support
4y ago