Zoom Video SDK for React - v0.0.2
    Preparing search index...

    Interface FunctionComponent<P>

    Represents the type of a function component. Can optionally receive a type argument that represents the props the component accepts.

    // With props:
    type Props = { name: string }

    const MyComponent: FunctionComponent<Props> = (props) => {
    return <div>{props.name}</div>
    }
    // Without props:
    const MyComponentWithoutProps: FunctionComponent = () => {
    return <div>MyComponentWithoutProps</div>
    }
    interface FunctionComponent<P = {}> {
        displayName?: string;
        propTypes?: any;
        (props: P): ReactNode | Promise<ReactNode>;
    }

    Type Parameters

    • P = {}

      The props the component accepts.

    Index

    Properties

    displayName?: string

    Used in debugging messages. You might want to set it explicitly if you want to display a different name for debugging purposes.


    const MyComponent: FC = () => {
    return <div>Hello!</div>
    }

    MyComponent.displayName = 'MyAwesomeComponent'
    propTypes?: any

    Ignored by React.

    Only kept in types for backwards compatibility. Will be removed in a future major release.