React Router API Reference
    Preparing search index...

    Interface RouterContext<T>

    A context instance used as the key for the get/set methods of a RouterContextProvider. Accepts an optional default value to be returned if no value has been set.

    interface RouterContext<T = unknown> {
        defaultValue?: T;
    }

    Type Parameters

    • T = unknown
    Index

    Properties

    Properties

    defaultValue?: T