How to use the @govuk-react/hoc.asAnchor function in @govuk-react/hoc

To help you get started, we’ve selected a few @govuk-react/hoc 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 govuk-react / govuk-react / components / list-navigation / src / example.js View on Github external
import React from 'react';
import { asAnchor } from '@govuk-react/hoc';
import ListNavigation from './index';

const AnchorTag = asAnchor('a');

export default () => (
  
    Example
  
);

@govuk-react/hoc

govuk-react: A port of the govuk-frontend components for React using styled-components.

MIT
Latest version published 3 years ago

Package Health Score

43 / 100
Full package analysis