New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

react-background-image

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-background-image

Display a placeholder image while the real image loads, featuring different preloading and animation options

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
16
77.78%
Maintainers
1
Weekly downloads
 
Created
Source

react-background-image

Display a placeholder image while the real image loads, featuring different preloading and animation options

NPM JavaScript Style Guide

Install

npm install --save react-background-image

Usage

import React from "react";
import BackgroundImage from "react-background-image";
import placeholder from "./images/small.jpg";
import hdImage from "./images/large.jpg";

export default class App extends React.Component {
  render() {
    return (
      <main className="main">
        <BackgroundImage placeholder={placeholder} src={hdImage} />
      </main>
    );
  }
}

License

MIT © jonatanramhoj

FAQs

Package last updated on 02 Dec 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts