router-hook
Advanced tools
Comparing version 5.0.0 to 5.0.1
@@ -10,3 +10,4 @@ "use strict"; | ||
const setRoute = Provider_1.useSetRoute(); | ||
return (react_1.default.createElement("a", Object.assign({ onClick: ev => { | ||
return (react_1.default.createElement("a", Object.assign({}, props, { onClick: ev => { | ||
ev.persist(); | ||
if (props.onClick) { | ||
@@ -17,4 +18,4 @@ props.onClick(ev); | ||
setRoute(props.href); | ||
} }, props))); | ||
} }))); | ||
} | ||
exports.default = A; |
{ | ||
"name": "router-hook", | ||
"author": "Tim Field <tim@mohiohio.com>", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"main": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/tim-field/router-hook/#readme", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15295
372