• React hook to get the Y.Doc instance from the current context.

    Parameters

    • Optional options: YDocOptions

    Returns Y.Doc

    The Y.Doc instance.