redux-pleasewait
redux-pleasewait library
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