How to use the @reach/router.Link function in @reach/router

To help you get started, we’ve selected a few @reach/router examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github reach / reach-ui / packages / menu-button / index.js View on Github external
var MenuLink = _react2.default.forwardRef(function (_ref14, _ref15) {
  var onKeyDown = _ref14.onKeyDown,
      onClick = _ref14.onClick,
      _ref14$component = _ref14.component,
      Comp = _ref14$component === undefined ? _router.Link : _ref14$component,
      style = _ref14.style,
      setState = _ref14.setState,
      state = _ref14.state,
      index = _ref14.index,
      _ref = _ref14._ref,
      props = _objectWithoutProperties(_ref14, ["onKeyDown", "onClick", "component", "style", "setState", "state", "index", "_ref"]);

  return _react2.default.createElement(
    MenuItem,
    {
      role: "none",
      state: state,
      setState: setState,
      index: index,
      onSelect: k,
      _ref: k