An extension to Varnish for applications that use React Router.
npm install @allenai/varnish-react-routerAn extension to Varnish for applications that use React Router.
First install the package:
``bash`
yarn add @allenai/varnish-react-router
Then you can use it like so:
`tsx
import { ThemeProvider } from '@allenai/varnish';
import { Link } from '@allenai/varnish-react-router';
import '@allenai/varnish/varnish.css';
const App = () => (
Click Here
);
`
See: Varnish documentation for more example usage.
Examples of this library are shown in the Varnish Demo.
You can utilize the root Varnish Monorepo Docker setup by running docker-compose up --build.
From there you will be able to see demos at https://localhost:8080/components/varnish-react-route
See instructions at the monorepo root README
If you're stuck don't hesitate to reach out:
- Sending an email to reviz@allenai.org
- Joining the #skiff-users slack channel
- Opening a Github Issue
We're eager to improve varnish` and need your feedback to do so!