Is there a way to convert the initial example provided in the Solid-JS documentation to valid TypeScript?
import { render } from "solid-js/web"
const HelloMessage = (props: { name: string }) => <div>Hello {props.name}</div>
render(() => <HelloMessage name="Taylor" />, document.getElementById("hello-example"))
I'm encountering an error related to props
lacking type hint, specifically
Parameter 'props' implicitly has an 'any' type.
In React, I typically use React.FC
, but I haven't been able to find an equivalent in Solid-JS. Is there another approach I should take?