preact-router
preact-router copied to clipboard
Fix #264 Preact Router is not able to be extended
fix #264
Add setCustomHistory function, because customHistory is read-only when exports. Router class now extendable, to extend it - simple copy its constructor without "Object.getPrototypeOf" condition. Add export for canRoute, delegateLinkHandler, routeTo, customHistory, setCustomHistory.