1.0.3 • Published 6 years ago

delay-component-load v1.0.3

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

Delay component load

Just delays component rendering time with counter Alt text Alt text Alt text

Installation

$ npm i delay-component-load
OR
$ yarn add delay-component-load

Usage

	const SET_TIME_INTERVAL = 10;
	.
	.
	.
	<Lazy
		timeInterval={this.state.timeInterval}
		label={`You can resend in %timer% seconds`}
	>
		<span
			className='textbutton textbutton--small'
			onClick={(e) => {
				// this.handleInvite(e, false, false)
				this.setState({
					timeInterval: SET_TIME_INTERVAL
				})
			}}
		>
			Resend
		</span>
	</Lazy>