shinkansen-rails
v1.1.130
Published
Shinkansen Rails
Readme
shinkansen-rails
Rails
Rails transforms objects into strings to be consumed by <Link /> components for React Router.
Usage
import {
Rails
} from 'shinkansen-rails'Rails exposes the methods pattern, go, to, and rail.
export class Rails {
static pattern () { }
static go () { }
static to () { }
static rail () { }
}patternreturns a string which is the transformation patterngoreturns a boolean which describes whether an object can be transformed by the patterntoreturns a string which is the product of that transformationrailcaches and returns a product ofto
The method rail should be used whenever the computation is (or expected to be) idempotent.
