This package has been deprecated

Author message:

Superseded by @fdmg/design-system. See: https://github.com/FDMediagroep/fd-design-system

@fdmg/ts-react-h1
TypeScript icon, indicating that this package has built-in type declarations

1.0.14 • Public • Published

fdmg-ts-react-h1

Build Status Coverage Status npm version Greenkeeper badge

ReactJS H1 component. This component renders an H1 header. You might think it silly to have this as a separate component. But when you use an H1-element multiple times in your project then having that as a component might eventually save you some bytes.

Installation

  • Run npm i --save-dev @fdmg/ts-react-h1

or

  • Run yarn add @fdmg/ts-react-h1 --dev

Usage

TypeScript

import * as React from 'react';
import H1 from '@fdmg/ts-react-h1';

export default class foo {
    public state: any;
    public props: any;

    constructor(props: any) {
        super(props);
        this.props = props;
    }

    render() {
        return (<H1 className={'css-class-name'}>title</H1>);
    }
}

Resulting HTML

<h1 class="css-class-name">title</h1>

Readme

Keywords

none

Package Sidebar

Install

npm i @fdmg/ts-react-h1

Weekly Downloads

1

Version

1.0.14

License

ISC

Unpacked Size

159 kB

Total Files

13

Last publish

Collaborators

  • dirk-straat
  • willem_liu
  • sapulidi