Skip to content

PepsRyuu/preact-router-alternate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Preact Router Alternate

Alternative router for Preact apps. Uses a similar API to React Router, but with some minor changes which I think make more sense.

Getting Started

npm install preact-router-alternate

Features

  • HTML5 History only.
  • Nested routes.
  • Router, Switch, Route, Redirect, Link, Prompt components which are very similar to React Router.
  • Prompt allows you by default to provide a custom component instead of showing alert box.
  • TransitionSwitch component for animating between routes.

Examples

Example app in the examples directory demonstrates different things you can do with this library.

To run the examples:

cd examples
npm install
npm start

Then go to http://localhost:9001 in your browser.

API

See API documentation for further information.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published