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
Props | Type | Description |
---|---|---|
to | string | The path to navigate to |
state | any | Data send via URL to the destination page |