Skip to content

Law78/anchorit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is an utility for use anchor link with React Router.

#How to install

npm install --save anchorits

#How to use

In your app.jsx:

// destructuring
var {Route, Router, IndexRoute, hashHistory} = require('react-router');

var {anchorit} = require('anchorit');


function onUpdate () {s
  anchorit();
}
/*

In your link:

<Link to={{ pathname: '', query: { anchor: 'YOURANCHORLINK' } }} className="YOUROPTIONALCSSCLASS">Go To Link</Link>

About

Create anchor in HTML and React

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published