React Router API Reference
    Preparing search index...

    Interface NavigateProps

    interface NavigateProps {
        relative?: RelativeRoutingType;
        replace?: boolean;
        state?: any;
        to: To;
    }
    Index

    Properties

    How to interpret relative routing in the to prop. See RelativeRoutingType.

    replace?: boolean

    Whether to replace the current entry in the History stack

    state?: any

    State to pass to the new Location to store in history.state.

    to: To

    The path to navigate to. This can be a string or a Path object