UNPKG

string-to-react-component

Version:

Dynamically create and render React components from strings at runtime, converting strings to React components for flexible UI generation.

6 lines (5 loc) 313 B
import type { FC, PropsWithChildren } from 'react'; import type { StringToReactComponentProps } from './src/types.d'; export { StringToReactComponentProps } from './src/types.d'; declare const StringToReactComponent: FC<PropsWithChildren<StringToReactComponentProps>>; export default StringToReactComponent;