1.0.8 • Published 7 years ago

rrrouter-provider-history v1.0.8

Weekly downloads
10
License
ISC
Repository
github
Last release
7 years ago

#Purpose Implementation of Provider for rrrouter with direct usage of rrrouter-history as history session manager.

#Installation

npm install --save rrrouter-provider-history

#API

###Provider

PropertyDescriptionTypeDefault
historyInstance of any rrrouter-history to use as session managerObjectno
initHrefInitial href that will be used at startupStringno

#Usage 1. Setup Provider

###Example.1 - setup Provider

import React from 'react';
import ReactDOM from 'react-dom';
import { Provider, HashHistory } from 'rrrouter-provider-history';

const history = new HashHistory();

ReactDOM.render(
	<Provider history={history} initHref='/'>
		<div>Your application</div>
	</Provider>,
	document.getElementById('root')
);
1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago