import React from 'react';
import { Link } from 'react-router-dom';

/**
 * Prevents the `newTab` prop from being passed to Link,
 * which emits errors when it receives props it doesn't expect.
 */
export default ({ newTab, children, ...rest }) => (
  <Link {...rest}>{children}</Link>
);

import React from 'react';
import { Link } from 'react-router-dom';

/**
 * Prevents the `newTab` or `appearFocused` prop from being passed to Link,
 * which emits errors when it receives props it doesn't expect.
 */
export default ({ newTab, appearFocused, children, ...rest }) => (
  <Link {...rest}>{children}</Link>
);

exclude appearFocused prop from html a tag