redux-pleasewait

1.0.4 • Public • Published

redux-pleasewait

redux-pleasewait library

NPM JavaScript Style Guide

Install

npm install --save redux-pleasewait

Usage

import React from 'react'
import { PleaseWait } from 'redux-pleasewait'
const yourStore = {firstReducer : {loading: true}};

class Example extends Component {
  render() {
    return  <PleaseWait store={yourStore}
                           color="white"
                           text="Please wait a moment..."
                           fontSize={40}
                           background="rgb(10,100,20,0.5)"
                           predicate={(value, key) => {return key === 'loading' && value === true}}>
                 <div>Hello world !!!</div>
            </PleaseWait>
  }
}

License

MIT © AmineZAMANI

Package Sidebar

Install

npm i redux-pleasewait

Weekly Downloads

1

Version

1.0.4

License

MIT

Unpacked Size

12.1 kB

Total Files

7

Last publish

Collaborators

  • azamani