0.1.0 • Published 4 years ago

@sankei-arc-shared-components/element_general-link v0.1.0

Weekly downloads
32
License
ISC
Repository
github
Last release
4 years ago

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.