1.0.6 • Published 7 years ago

fdmg-ts-react-h2 v1.0.6

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

Build Status Coverage Status

npm version

fdmg-ts-react-h2

ReactJS H2 component. This component renders an H2 header. You might think it silly to have this as a separate component. But when you use an H2-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-h2

or

  • Run yarn add fdmg-ts-react-h2 --dev

Usage

TypeScript

import * as React from 'react';
import H2 from 'fdmg-ts-react-h2';

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

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

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

Resulting HTML

    <h2 class="css-class-name">title</h2>
1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago