Skip to content

Instantly share code, notes, and snippets.

@topjohncian
Created February 8, 2022 16:16
Show Gist options
  • Save topjohncian/e636b7f8eb665398642e4aa3ca60e57e to your computer and use it in GitHub Desktop.
Save topjohncian/e636b7f8eb665398642e4aa3ca60e57e to your computer and use it in GitHub Desktop.
Fuck Up
// node_modules/connected-react-router/esm/ConnectedRouter.js L138-L140
// raw
return /*#__PURE__*/React.createElement(Router, {
history: history
}, children);
// now
return /*#__PURE__*/React.createElement(Router, {
history: history,
pathname: _this$props.pathname
}, children);
// node_modules/connected-react-router/lib/ConnectedRouter.js L157-L159:
// raw
return /*#__PURE__*/_react["default"].createElement(_reactRouter.Router, {
history: history
}, children);
// now
return /*#__PURE__*/_react["default"].createElement(_reactRouter.Router, {
history: history,
basename: _this$props.basename
}, children);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment