0.0.1 • Published 7 years ago
reactive-slider v0.0.1
Reactive Slider
Reactive Slider is slider component for React
How to use
npm install reactive-slider
After that, You can use slider in your React App:
render() {
return (
<ReactiveSlider
slides={this.state.slides}
/>
);
}
this.state.slides
contains array of images
Also you can use timeToShow
prop which takes a number of seconds:
render() {
return (
<ReactiveSlider
slides={this.state.slides}
timeToShow={5}
/>
);
}
Each slide will be shown 5 seconds Default value is 3 seconds
0.0.1
7 years ago