Wondering what’s next for npm?Check out our public roadmap! »

This package has been deprecated

Author message:

Use @fdmg/ts-react-image instead

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

1.0.4 • Public • Published

Build Status Coverage Status

npm version

fdmg-ts-react-image-button

ReactJS Image component. This component renders an image.

Installation

  • Run npm i --save-dev fdmg-ts-react-image

or

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

Usage

TypeScript

import * as React from 'react';
import Img from 'fdmg-ts-react-image';

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

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

    render() {
        return (
            <Img
                src={"img/button.svg"} 
                className="image-btn btn"
                alt="Special button"
            />
        );
    }
}

Resulting HTML

    <img src="img/button.svg" alt="Special button" class="image-btn btn"/>

Keywords

none

Install

npm i fdmg-ts-react-image

DownloadsWeekly Downloads

5

Version

1.0.4

License

ISC

Last publish

Collaborators

  • avatar