Open tslocke opened 1 month ago
/solid-router/getting-started/component.mdx
https://docs.solidjs.com/solid-router/getting-started/component
This page contains the sample code
<Route path="/hello-world" component={<h1>Hello World!</h1>} />
With typescript this gives a type error. It's expecting a function:
<Route path="/hello-world" component={() => <h1>Hello World!</h1>} />
No response
📚 Subject area/topic
/solid-router/getting-started/component.mdx
📋 Page(s) affected (or suggested, for new content)
https://docs.solidjs.com/solid-router/getting-started/component
📋 Description of content that is out-of-date or incorrect
This page contains the sample code
With typescript this gives a type error. It's expecting a function:
🖥️ Reproduction in StackBlitz (if reporting incorrect content or code samples)
No response