Skip to content

Commit c8b42d8

Browse files
committed
docs(ADVANCED.md): ReactType -> ElementType
1 parent 5436ed3 commit c8b42d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ADVANCED.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,10 @@ export interface Props {
284284

285285
## `as` props (passing a component to be rendered)
286286

287-
`ReactType` is pretty useful to cover most types that can be passed to createElement e.g.
287+
`ElementType` is pretty useful to cover most types that can be passed to createElement e.g.
288288

289289
```tsx
290-
function PassThrough(props: { as: ReactType<any> }) {
290+
function PassThrough(props: { as: ElementType<any> }) {
291291
const { as: Component } = props;
292292

293293
return <Component />;

0 commit comments

Comments
 (0)