react-router-tools
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -42,3 +42,7 @@ import React from 'react'; | ||
route: function route(renderFn) { | ||
// eslint-disable-next-line | ||
route: function route() { | ||
var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, | ||
renderFn = _ref2.render; | ||
var child = null; | ||
@@ -48,3 +52,2 @@ if (renderFn || render) { | ||
} else if (component) { | ||
console.log(fullPath); | ||
child = React.createElement(Route, { key: fullPath, path: fullPath, component: component, exact: exact }); | ||
@@ -51,0 +54,0 @@ } else { |
@@ -57,3 +57,7 @@ 'use strict'; | ||
route: function route(renderFn) { | ||
// eslint-disable-next-line | ||
route: function route() { | ||
var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, | ||
renderFn = _ref2.render; | ||
var child = null; | ||
@@ -63,3 +67,2 @@ if (renderFn || render) { | ||
} else if (component) { | ||
console.log(fullPath); | ||
child = _react2.default.createElement(_reactRouter.Route, { key: fullPath, path: fullPath, component: component, exact: exact }); | ||
@@ -66,0 +69,0 @@ } else { |
{ | ||
"name": "react-router-tools", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A collection of assorted React Router(v4) utility functions", | ||
@@ -5,0 +5,0 @@ "author": "Fredrik Westmark (fredrik.westmark@gmail.com)", |
@@ -28,3 +28,4 @@ import React from 'react'; | ||
route: ( renderFn ) => { | ||
// eslint-disable-next-line | ||
route: ( { render: renderFn } = {} ) => { | ||
let child = null; | ||
@@ -34,3 +35,2 @@ if ( renderFn || render ) { | ||
} else if ( component ) { | ||
console.log( fullPath ); | ||
child = ( <Route key={ fullPath } path={ fullPath } component={ component } exact={ exact } /> ); | ||
@@ -37,0 +37,0 @@ } else { |
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
10467
245