Svero screenshot

Svero

Author Avatar Theme by Kazzkiq
Updated: 5 Apr 2020
200 Stars

(DEPRECATED) A simple router for Svelte 3

Overview

This article discusses a deprecated library called “svero” that should not be used in new projects. The library is intended for use in Single Page Applications (SPAs) that make use of pushState and the History API.

Features

  • Intended for use in Single Page Applications (SPAs)
  • Makes use of pushState and the History API
  • Can be used with a module bundler such as Rollup or Webpack
  • Simple usage with wildcard fallback routes
  • Ability to pass custom props to components
  • Support for paths with parameters
  • Component receives properties with route details
  • Ability to render custom markup when routes are active
  • Support for hash-based routing
  • Ability to render svero components inside any parent component
  • Customization options with props like “nofallback”, “exact”, and “redirect”

Installation

Since “svero” is exported in CommonJS format, it should be used with a module bundler such as Rollup or Webpack. It can be installed via npm with the following command:

npm install svero

Summary

The article provides an overview of the deprecated library “svero” and its features. It also includes instructions for installing the library and provides examples of its usage. It is important to note that the library is deprecated and should not be used in new projects.