@sankei-arc-shared-components/element_general-link
v0.1.0
Published
Shared General Link Component
Downloads
77
Readme
Shared General Link Component
How do I use this ?
import GeneralLink from '@sankei-arc-shared-components/element_general-link';
const props = {
url: 'https://www.sankei.com',
content: 'dummy',
};
const instance = shallow(<GeneralLink {...props} />);
What does this do ?
This will render an external or an internal link based on the url provided. External links open in a new tab.