JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q47244F

Package Exports

  • random-dog-image
  • random-dog-image/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (random-dog-image) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

random-dog-image (React)

A react component that generates random images of dogs.

Install the package:

npm install random-dog-image

Import the component:

import the react dog image component in your .js file:

 import DogImage from 'random-dog-image'

How to use it:

Add the DogImage element in your JSX:

class Example extends React.Component {
 render() {
   return  <DogImage></DogImage>;
 }
}

How the component will look:

image of the npm package

Hope the dog images will delight your days!