Router

In general, the router allows you to navigate between views of different components in React, allows you to change the browser URL, and keeps the UI in sync with the URL.

And by using a custom ROUTER, you can set custom functions through which the URL can subsequently be changed.

Usage

router={ROUTER}

Example

import { useLocation, useNavigate, Link } from 'react-router-dom';

const ROUTER = {
	functions: { useNavigate, useLocation },
	components: { Link },
};

Here is a simple functional example of a costant ROUTER that can be used as an input parameter of the ReactAdminerProvider component.

Last updated