❗ DEPRECATED ❗ : Superseded by @fdmg/design-system. See: https://github.com/FDMediagroep/fd-design-system
ReactJS Image component. This component renders an image.
- Run
npm i --save-dev @fdmg/ts-react-image
or
- Run
yarn add @fdmg/ts-react-image --dev
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"
/>
);
}
}
<img src="img/button.svg" alt="Special button" class="image-btn btn"/>