Skip to content

j3l11234/reach-router-hash-history

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reach-router-hash-history

Introduction

This tools make a hash history for @reach/router
The third version is inspired by will-stone https://github.com/will-stone/hash-source.

╮(╯_╰)╭ I hope one day the tools will be deprecated

Usage

import React from 'react';
import ReactDom from 'react-dom';
import { LocationProvider, createHistory } from '@reach/router';
import { createHashSource } from "reach-router-hash-history";

const history = createHistory(createHashSource());
ReactDom.render(
  <LocationProvider history={history}>
    <Component />
  </LocationProvider>,
  document.getElementById('app')
);

Thanks

will-stone
https://github.com/will-stone

About

use @reach/router with hash history

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published