Interface LinkProps

Props of the Link component.

interface LinkProps {
    hash?: string;
    prefetch?: boolean;
    replace?: boolean;
    state?: any;
    to: To;
}

Hierarchy (view full)

Properties

hash?: string

A URL fragment identifier.

If hash begins with a # then it is used as is. Otherwise, it is encoded using encodeURIComponent.

prefetch?: boolean

If true then link prefetches a route location and its data.

false
replace?: boolean

If true then link replaces the current history entry, otherwise link pushes an entry.

false
state?: any

An arbitrary data associated with the location.

to: To

A location or route to navigate to when link is clicked.