@allenai/varnish-react-router
TypeScript icon, indicating that this package has built-in type declarations

3.0.13 • Public • Published

varnish-react-router

An extension to Varnish for applications that use React Router.

Usage

First install the package:

yarn add @allenai/varnish-react-router

Then you can use it like so:

import { ThemeProvider } from '@allenai/varnish';
import { Link } from '@allenai/varnish-react-router';
import '@allenai/varnish/varnish.css';

const App = () => (
  <ThemeProvider>
    <Link to="/some/path">Click Here</InternalLink>
  </ThemeProvider>
);

See: Varnish documentation for more example usage.

Contributing

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

Publishing

See instructions at the monorepo root README

Getting Help

If you're stuck don't hesitate to reach out:

We're eager to improve varnish and need your feedback to do so!

Package Sidebar

Install

npm i @allenai/varnish-react-router

Weekly Downloads

66

Version

3.0.13

License

Apache-2.0

Unpacked Size

30.8 kB

Total Files

13

Last publish

Collaborators

  • mtblanton
  • darrellp
  • undfinedxyz
  • arnavic
  • ericm995
  • yensungc-ai2
  • huytr1995
  • smitar
  • codeviking
  • jon.borchardt
  • aimichal