0.0.1 • Published 5 years ago

@pinecodes/use-link-catcher v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

Uselinkcatcher

size

Todo: Update this readme.

Usage:

import React from 'react';
import useLinkCatcher from '@pinecodes/use-link-catcher';
import { createBrowserHistory } from 'history';

const history = createBrowserHistory();

function App() {
  useLinkCatcher(history);
  return (
    <ul>
      <li><a href="/test1">Test 1</a>
      <li><a href="/test2">Test 2</a>
      <li><a href="/test3">Test 3</a>
    </ul>
  );
}
0.0.1

5 years ago