You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How would you set the string props through JSX? The props being an object is Internet to JSX. This is not an error, it's just a limit of the standard we aim to support.
Describe the bug
ComponentType<Props>
can be defined whereProps
is a string.Component types that contains strings cannot be consumed via JSX.
Error when hovering over
second
Your Example Website or App
https://stackblitz.com/edit/solidjs-templates-wb1s7a?file=src%2FApp.tsx&view=editor
Steps to Reproduce the Bug or Issue
Go to the stack blitz url.
Expected behavior
Component props shouldn't be strings, since they can't be used in JSX.
Screenshots or Videos
No response
Platform
Additional context
Problem is that
{}
===string
.I think this should instead be
object
,Record<string, any>
orRecord<string, unknown>
.Not sure which though.
The text was updated successfully, but these errors were encountered: