react-solid-flow
Version:
[SolidJS](https://www.solidjs.com/docs/latest/api#control-flow)-inspired basic control-flow components and everyday async state hook library for [React](https://reactjs.org/)
11 lines (10 loc) • 498 B
TypeScript
import React from "react";
import type { ReactElement } from "react";
/** This component lets you insert an arbitrary Component or tag and passes
* the props through to it.
* For example, it can be usefull when you need to conditionally render
* <a> or <span> */
export declare const Dynamic: <T extends {}>(props: T & {
children?: any;
component?: string | React.ComponentClass<T, any> | React.FunctionComponent<T> | undefined;
} & React.RefAttributes<unknown>) => ReactElement | null;