@canner/div-background-wrapper

minimal div background wrapper

Usage no npm install needed!

<script type="module">
  import cannerDivBackgroundWrapper from 'https://cdn.skypack.dev/@canner/div-background-wrapper';
</script>

README

div-background-wrapper NPM version Dependency Status

minimal div background wrapper

Installation

$ npm install --save div-background-wrapper

Usage

import React from 'react';
import ReactDOM from 'react-dom';
import DivBg from '../src';

ReactDOM.render(
  <DivBg
    image="http://lorempixel.com/1000/600/nature/1/"
    width="400px"/>
, document.getElementById('root'));

Start example server

node devServer.js

License

Apache-2.0 © chilijung