React Routeways - API ReferenceDocs


React Routeways - API Reference / Link

Function: Link()

Link<T>(props): ReactElement

A wrapper over react-router-dom’s <Link> component, with the difference that the to prop expects a Routeway route instead of a path string.

If the route requires path variables and/or query parameters, you can pass them over the params prop.

Type Parameters

T extends Routeway

Parameters

props: LinkProps<T>

Returns

ReactElement

Defined in

src/lib/components/Link.component.tsx:43