We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5436ed3 commit c8b42d8Copy full SHA for c8b42d8
ADVANCED.md
@@ -284,10 +284,10 @@ export interface Props {
284
285
## `as` props (passing a component to be rendered)
286
287
-`ReactType` is pretty useful to cover most types that can be passed to createElement e.g.
+`ElementType` is pretty useful to cover most types that can be passed to createElement e.g.
288
289
```tsx
290
-function PassThrough(props: { as: ReactType<any> }) {
+function PassThrough(props: { as: ElementType<any> }) {
291
const { as: Component } = props;
292
293
return <Component />;
0 commit comments