easyroute-coredeprecated

Framework-agnostic router for JavaScript single-page applications in style of Vue Router

Usage no npm install needed!

<script type="module">
  import easyrouteCore from 'https://cdn.skypack.dev/easyroute-core';
</script>

README

alt text

Framework-agnostic library for routing JavaScript single-page applications

TL;DR Features:

  • Config-based router (just like Vue Router)
  • Dynamic route matching
  • Nested routes
  • Programmatic navigation
  • Named routes
  • Named views (outlets)
  • Global and individual navigation hooks
  • Hash, history and silent modes
  • Functions to calculate transitions durations
  • SSR friendly

Documentation

Coming soon

This is framework-agnostic library

You can't use it without special bindings for frameworks and libraries. This library contains only logic part of router: handling hash or url changes, routes tree generation, resolving current route, etc.

For every framework and library you should have router outlet and router link components.

Currently available:

  1. Svelte Easyroute - bindings for Svelte 3 (NPM)
  2. React Easyroute - bindings for React (NPM)