Docs
API Reference
Components
Routing
Link Component

Link

The <Link> component is a React component that allows you to navigate between routes in your application. It is the recommended way to navigate between routes in Rasengan.js.

Usage

to Property

Here's an example of how to use the <Link> component:

Lean more here

Passing data via state prop

Then, you can access to the state like follow:

const { state } = useLocation();

Properties

PropsTypeDescription
tostringThe path to navigate to
stateanyData send via URL to the destination page
Logo Image