@s2terminal/every-url
v0.0.4
Published
Enable to bookmark dynamic url.
Downloads
3
Readme
Every URL
This is React component that enables to bookmark dynamic url.
Installation
$ npm install --save-dev @s2terminal/every-url
Requirements
Usage
import React from 'react';
import ReactDOM from 'react-dom';
import EveryURL from "@s2terminal/every-url";
ReactDOM.render(
<EveryURL
uniqueStorageKey="EveryURLState"
urlSettings={
{
host: {
name: "HOST",
type: "static",
default: "https://example.com/before/date/path/"
},
datePath: {
name: "DATE",
type: "date",
default: "YYYY/MM/DD/"
},
afterDatePath: {
name: "AFTER DATE PATH",
type: "static",
default: "after?date=path"
}
}
}
/>, document.getElementById('main'));
Build
$ npm run prepare
Developing
$ npm run develop
open http://localhost:8080/
License
MIT.