Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
147 commits
Select commit Hold shift + click to select a range
0e348f6
Fixing issue with asNavFor not detecting all slide changes
Nov 12, 2018
727e340
Got rid of ReactDOM.findDOMNode (#1406)
andreytrofimov Dec 2, 2018
2b7e78c
Merge pull request #1423 from celdrake/master
akiran Apr 15, 2019
d949739
version update
akiran Apr 17, 2019
ae049ff
updated snapshots
akiran Apr 17, 2019
065ec2f
update variablewidth option
Apr 17, 2019
59d11f3
variablewidth + infinite false
Apr 17, 2019
6156165
variablewidth + infinite false
Apr 17, 2019
a7b7da9
add conditional
Apr 22, 2019
06806e7
updated var(s) to let and const to follow popular view that var shoul…
Hillsie May 23, 2019
e1548a9
Merge pull request #1561 from Hillsie/master
akiran May 25, 2019
c811190
Fixes the asNavFor issue when infinite is false. fixed #1562
nikhilasrani Jul 13, 2019
bc612bd
Added style props to the component allowing users to pass inline styl…
nikhilasrani Jul 13, 2019
b788648
Merge pull request #1592 from nikhilasrani/asNavForFix
akiran Jul 13, 2019
640ce00
Update README.md
akiran Jul 13, 2019
97988e8
Added UNSAFE_ prefix to deprecated lifecycle methods to avoid warning…
akiran Aug 10, 2019
7ad8834
fix non-existed lifecycle UNSAFE_componentWillUnmount
afc163 Aug 12, 2019
c8c6209
:white_check_mark: fix snapshot
afc163 Aug 12, 2019
8edd48b
Merge pull request #1615 from afc163/fix-unmount
akiran Aug 12, 2019
5685427
version update with fix in lifecycle name
akiran Aug 12, 2019
fe7799b
Merge pull request #1593 from nikhilasrani/AddStyleProps
akiran Aug 12, 2019
018bcdf
version updated with fix for #1180
akiran Aug 12, 2019
693a760
Merge remote-tracking branch 'origin/master' into domain-empty-space-fix
Oct 24, 2019
80daca8
Merge remote-tracking branch 'origin/master' into fix-empty-space
Oct 24, 2019
9f97c3a
Merge branch 'fix-empty-space' into domain-empty-space-fix
Oct 24, 2019
08f0cd8
refactor: remove deprecated vendor prefix
kyuwoo-choi Nov 26, 2019
9caf504
refactor: no componentDidMount called on server
kyuwoo-choi Dec 1, 2019
f5b77f3
Merge pull request #1680 from kyuwoo-choi/refactor/no-window-guard
akiran Dec 18, 2019
46c42d7
Delete stale.yml
akiran Jan 6, 2020
2ee1691
Merge pull request #1677 from kyuwoo-choi/refactor/vendor-prefix
akiran Jan 6, 2020
ed933c6
Disconnect ResizeObserver when component unmounts to prevent memory-l…
oskarsjoberg-sl Jan 8, 2020
77e8184
meta: enable sponsor button
jamesgeorge007 Jan 10, 2020
4e2d1c7
Merge pull request #1705 from jamesgeorge007/sponsor-btn
akiran Jan 10, 2020
d3566cc
docs: add reference to the contributing guidelines
jamesgeorge007 Jan 10, 2020
dc5f7ce
Merge pull request #1706 from jamesgeorge007/docs
akiran Jan 10, 2020
c1c71a1
Update FUNDING.yml
akiran Jan 10, 2020
80eb208
Update FUNDING.yml
akiran Jan 10, 2020
c35ce4a
fix: to handle image.onload event correctly
rex-acs Feb 4, 2020
6444cd8
#1749 Correct issue link in CONTRIBUTING.md
suekam Mar 24, 2020
465b97a
Update FUNDING.yml
akiran May 1, 2020
b475df5
Update FUNDING.yml
akiran May 1, 2020
7128f52
Merge pull request #1750 from suekam/fix/correct-issues-link
akiran May 5, 2020
e95c462
fix: dir
xrkffgg May 8, 2020
ef32fce
Merge pull request #1781 from xrkffgg/fixdir
akiran May 9, 2020
cde2704
default children return in case of unslick
cryptic022 May 10, 2020
76735b2
Merge pull request #1785 from cryptic022/slick-issue-1663
akiran May 10, 2020
1b4926c
version update
akiran May 10, 2020
2fd4558
change homepage url
akiran May 10, 2020
566c181
resolve merge conflict of #1703
akiran May 10, 2020
4197017
resolve merge conflict for #1723
akiran May 10, 2020
75a8f24
single demo setup
akiran May 11, 2020
8860dc4
rename jsx to js files
akiran May 11, 2020
bb11613
undoing #1781 change. It is breaking rtl
akiran May 11, 2020
7a30f69
release 0.26.1
akiran May 11, 2020
4b42a45
ran prettier command
akiran May 12, 2020
6b41834
change localhost to 0.0.0.0 to access local server on mobile
akiran May 12, 2020
e5d2cd4
Remove unused argument
bolatovumar May 12, 2020
38c1b51
Merge pull request #1793 from bolatovumar/fix-1792
akiran May 14, 2020
1872717
added strict mode to demos
akiran Jul 17, 2020
99d86f0
Merge pull request #1442 from andreytrofimov/issue1406
akiran Jul 17, 2020
6c01f37
Merge pull request #1840 from akiran/deprecation-warnings
akiran Jul 17, 2020
bea916e
Release 0.27.0
akiran Jul 17, 2020
b3721a2
remove UNSAFE_componentWillMount usage in slider.js
akiran Jul 26, 2020
8a35db7
remove UNSAFE_componentWillMount usage in inner-slider.js
akiran Jul 26, 2020
8d9b8b6
Release 0.27.1
akiran Jul 26, 2020
8ae0e38
Merge pull request #1846 from akiran/remove-unsafe
akiran Jul 26, 2020
2ca29b8
fix for slick current classname
akiran Jul 31, 2020
6e3db9f
0.27.2-beta-0 release
akiran Jul 31, 2020
cf7363e
fix an issue with focus on select on first slide
akiran Aug 3, 2020
a10db5c
fix an issue with slick-current at edge slides
akiran Aug 3, 2020
37afd92
Merge pull request #1856 from akiran/goto-first-slide
akiran Aug 4, 2020
2b44d88
release 0.27.2
akiran Aug 4, 2020
bef98be
fix an issue with slick-current when swiped from left to right on fir…
akiran Aug 5, 2020
d17c1f1
Merge pull request #1857 from akiran/swipe-right-issue
akiran Aug 5, 2020
0cb98de
Fix an issue: showing less slides than slidesToShow in infinite mode
akiran Aug 7, 2020
7fe4f6f
fixed tests
akiran Aug 7, 2020
1d881a1
Merge pull request #1858 from akiran/white-space-infinite
akiran Aug 7, 2020
48c1973
release 0.27.4
akiran Aug 7, 2020
8b42e2e
Update README.md
akiran Aug 9, 2020
a814dad
Merge branch 'master' of github.com:akiran/react-slick
akiran Aug 10, 2020
8295e4b
avoid slide change if it is already on the same slide
akiran Aug 10, 2020
11122da
fix an issue with waitForAnimate
akiran Aug 10, 2020
a1e3106
update test snapshot
akiran Aug 10, 2020
c9551a5
Merge pull request #1860 from akiran/select-issue-aug10
akiran Aug 10, 2020
7260ff7
release 0.27.5
akiran Aug 10, 2020
ca61204
fix to swipe issues
akiran Aug 11, 2020
1b45e4b
make asNavFor work with waitForAnimate=false
akiran Aug 11, 2020
da03d85
Merge pull request #1863 from akiran/final-aug11
akiran Aug 11, 2020
fdfc4f9
release 0.27.6
akiran Aug 11, 2020
e072da4
fix test
akiran Aug 11, 2020
dd93c49
fix dots issue in infinite mode
akiran Aug 12, 2020
ab9b36b
Update README.md
akiran Aug 12, 2020
f958da5
fix to avoid triggering of click after swipe end event on desktop
akiran Aug 12, 2020
0e1e295
release 0.27.7
akiran Aug 12, 2020
13ec7fd
Merge branch 'master' of github.com:akiran/react-slick
akiran Aug 12, 2020
1bb580d
ability to use useCSS option to disable default fade transition
akiran Aug 13, 2020
b7658c7
reset autoplay timer when slide is changed with buttons/dots
akiran Aug 13, 2020
7894cb6
Merge pull request #1871 from akiran/fade-aug13
akiran Aug 13, 2020
b6dd6df
updated readme
akiran Aug 13, 2020
69348c1
release 0.27.8
akiran Aug 13, 2020
5ce14b2
Update README.md
akiran Aug 13, 2020
9cac06f
Update README.md
akiran Aug 13, 2020
54566ad
Update README.md
akiran Aug 15, 2020
4f67597
Update README.md
akiran Aug 15, 2020
43bd164
Update README.md
akiran Aug 15, 2020
7fc0f20
Merge branch 'dots-aug11' into 0.27.9
akiran Aug 16, 2020
ce07bdb
using useCSS to enable/disable default fade transform
akiran Aug 16, 2020
d19bc96
fix missing afterChange event triggering with waitForAnimate=false
akiran Aug 16, 2020
e45b9e7
Fix an issue with prev button clicks in fade mode
akiran Aug 16, 2020
02189ee
remove UNSAFE_componentWillReceiveProps usage
akiran Aug 16, 2020
1c3d70c
fix in an issue with changing slides with keys in finite mode
akiran Aug 16, 2020
13abc56
Merge pull request #1873 from akiran/0.27.9
akiran Aug 16, 2020
a43f109
release 0.27.9
akiran Aug 16, 2020
9e6235c
focus the slide selected in focusOnSelect mode
akiran Aug 20, 2020
775d83b
Merge pull request #1876 from akiran/keys-aug20
akiran Aug 20, 2020
313dac7
release 0.27.10
akiran Aug 20, 2020
d1fb6bb
Fixes #1881
Sep 5, 2020
9f3a9b9
remove console.log
Sep 5, 2020
3449f51
Merge pull request #1890 from akiran/fix-1881
akiran Sep 6, 2020
1fe63ad
release 0.27.11
akiran Oct 8, 2020
9779b3e
remove alert from readme
Oct 9, 2020
659e9a4
converted class to function component in readme
Oct 9, 2020
4b85985
typo
delong8 Oct 19, 2020
5418853
Merge pull request #1912 from DeronW/patch-1
akiran Oct 21, 2020
cc0f0de
release 0.27.12
akiran Oct 31, 2020
4ca610d
Fix #1918
akiran Nov 2, 2020
e10743b
Update package.json
akiran Nov 2, 2020
32d1e3e
Merge branch 'master' of https://github.com/akiran/react-slick
akiran Nov 2, 2020
de674c0
release 0.27.13
akiran Nov 6, 2020
4c1f1dd
fix the afterChange-test
SarahAlAshwal Jan 10, 2021
90002b9
Merge pull request #1962 from SarahAlAshwal/afterChangeTest
akiran Jan 10, 2021
61198cf
fixed and issue with querySelectorAll
akiran Jan 11, 2021
1e511ea
Merge pull request #1963 from akiran/fix-1830
akiran Jan 11, 2021
9c26b25
release 0.27.14
akiran Jan 11, 2021
c2b148b
fixed #1958
akiran Jan 13, 2021
2c2fe37
Need to enforce images list validation
lipoolock Jan 20, 2021
cc5341f
Removed preventDefault statements from handlers of passive events: on…
MertTurel Jan 24, 2021
cbf2cf5
Merge pull request #1967 from lipoolock/patch-1
akiran Jan 24, 2021
6e121d2
Revert "Removed preventDefault statements from handlers of passive ev…
MertTurel Jan 24, 2021
f373992
Noticed functional side effects after removing preventDefault methods…
MertTurel Jan 24, 2021
89c36c7
Placed reactNames of events from event listeners those React consider…
MertTurel Jan 24, 2021
946cb7c
Merge pull request #1971 from turelmert/fix-1650
akiran Jan 25, 2021
364186b
release @0.28.0
akiran Jan 25, 2021
756afc6
feat: support disable bounce for vertical mode
alziqziq Mar 3, 2021
ccc866b
Merge pull request #1999 from alziqziq/feature/disable-vertical-bounce
akiran Mar 8, 2021
5fb7ac7
released 0.28.1
akiran Mar 8, 2021
f44a8fb
Merge remote-tracking branch 'origin/master' into check-merge
Mar 9, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
open_collective: react-slick
17 changes: 0 additions & 17 deletions .github/stale.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ jquery.html
docs/fonts/
docs/ajax-loader.gif
package-lock.json
.DS_Store
9 changes: 4 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@
First, thank you for considering contributing to react-slick! It's people like you that make the open source community such a great community! 😊

We welcome any type of contribution, not only code. You can help with

- **QA**: file bug reports, the more details you can give the better (e.g. screenshots with the console open)
- **Marketing**: writing blog posts, howto's, printing stickers, ...
- **Community**: presenting the project at meetups, organizing a dedicated meetup for the local community, ...
- **Code**: take a look at the [open issues](issues). Even if you can't write code, commenting on them, showing that you care about a given issue matters. It helps us triage them. To get started you can also [sign up to triage react-slick issues on CodeTriage](https://www.codetriage.com/akiran/react-slick).
- **Code**: take a look at the [open issues](https://github.com/akiran/react-slick/issues). Even if you can't write code, commenting on them, showing that you care about a given issue matters. It helps us triage them. To get started you can also [sign up to triage react-slick issues on CodeTriage](https://www.codetriage.com/akiran/react-slick).
- **Money**: we welcome financial contributions in full transparency on our [open collective](https://opencollective.com/react-slick).

## Your First Contribution

Working on your first Pull Request? You can learn how from this *free* series, [How to Contribute to an Open Source Project on GitHub](https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github).
Working on your first Pull Request? You can learn how from this _free_ series, [How to Contribute to an Open Source Project on GitHub](https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github).

## Submitting code

Expand All @@ -31,7 +32,7 @@ Anyone can file an expense. If the expense makes sense for the development of th

## Questions

If you have any questions, create an [issue](issue) (protip: do a quick search first to see if someone else didn't ask the same question before!).
If you have any questions, create an [issue](https://github.com/akiran/react-slick/issues) (protip: do a quick search first to see if someone else didn't ask the same question before!).
You can also reach us at [email protected].

## Credits
Expand All @@ -41,14 +42,12 @@ You can also reach us at [email protected].
Thank you to all the people who have already contributed to react-slick!
<a href="https://github.com/akiran/react-slick/graphs/contributors"><img src="https://opencollective.com/react-slick/contributors.svg?width=890" /></a>


### Backers

Thank you to all our backers! [[Become a backer](https://opencollective.com/react-slick#backer)]

<a href="https://opencollective.com/react-slick#backers" target="_blank"><img src="https://opencollective.com/react-slick/backers.svg?width=890"></a>


### Sponsors

Thank you to all our sponsors! (please ask your company to also support this open source project by [becoming a sponsor](https://opencollective.com/react-slick#sponsor))
Expand Down
100 changes: 37 additions & 63 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@ npm install react-slick --save
yarn add react-slick
```

⚠️ Also install slick-carousel for css and font
**Also install slick-carousel for css and font**

```bash
npm install slick-carousel
@import "~slick-carousel/slick/slick.css";
@import "~slick-carousel/slick/slick-theme.css";

// Import css files
import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css";
```

or add cdn link in your html
Expand Down Expand Up @@ -60,38 +62,36 @@ git push origin --follow-tags master
import React from "react";
import Slider from "react-slick";

class SimpleSlider extends React.Component {
render() {
var settings = {
dots: true,
infinite: true,
speed: 500,
slidesToShow: 1,
slidesToScroll: 1
};
return (
<Slider {...settings}>
<div>
<h3>1</h3>
</div>
<div>
<h3>2</h3>
</div>
<div>
<h3>3</h3>
</div>
<div>
<h3>4</h3>
</div>
<div>
<h3>5</h3>
</div>
<div>
<h3>6</h3>
</div>
</Slider>
);
}
export default function SimpleSlider() {
var settings = {
dots: true,
infinite: true,
speed: 500,
slidesToShow: 1,
slidesToScroll: 1
};
return (
<Slider {...settings}>
<div>
<h3>1</h3>
</div>
<div>
<h3>2</h3>
</div>
<div>
<h3>3</h3>
</div>
<div>
<h3>4</h3>
</div>
<div>
<h3>5</h3>
</div>
<div>
<h3>6</h3>
</div>
</Slider>
);
}
```

Expand All @@ -115,32 +115,6 @@ npm start
open http://localhost:8080
```

<a href="https://opencollective.com/react-slick/donate" target="_blank">
<img src="https://opencollective.com/react-slick/donate/[email protected]?color=blue" width=300 />
</a>

## Contributors

This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)].
<a href="https://github.com/akiran/react-slick/graphs/contributors"><img src="https://opencollective.com/react-slick/contributors.svg?width=890" /></a>

## Backers

Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/react-slick#backer)]

<a href="https://opencollective.com/react-slick#backers" target="_blank"><img src="https://opencollective.com/react-slick/backers.svg?width=890"></a>

## Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/react-slick#sponsor)]
## Contributing

<a href="https://opencollective.com/react-slick/sponsor/0/website" target="_blank"><img src="https://opencollective.com/react-slick/sponsor/0/avatar.svg"></a>
<a href="https://opencollective.com/react-slick/sponsor/1/website" target="_blank"><img src="https://opencollective.com/react-slick/sponsor/1/avatar.svg"></a>
<a href="https://opencollective.com/react-slick/sponsor/2/website" target="_blank"><img src="https://opencollective.com/react-slick/sponsor/2/avatar.svg"></a>
<a href="https://opencollective.com/react-slick/sponsor/3/website" target="_blank"><img src="https://opencollective.com/react-slick/sponsor/3/avatar.svg"></a>
<a href="https://opencollective.com/react-slick/sponsor/4/website" target="_blank"><img src="https://opencollective.com/react-slick/sponsor/4/avatar.svg"></a>
<a href="https://opencollective.com/react-slick/sponsor/5/website" target="_blank"><img src="https://opencollective.com/react-slick/sponsor/5/avatar.svg"></a>
<a href="https://opencollective.com/react-slick/sponsor/6/website" target="_blank"><img src="https://opencollective.com/react-slick/sponsor/6/avatar.svg"></a>
<a href="https://opencollective.com/react-slick/sponsor/7/website" target="_blank"><img src="https://opencollective.com/react-slick/sponsor/7/avatar.svg"></a>
<a href="https://opencollective.com/react-slick/sponsor/8/website" target="_blank"><img src="https://opencollective.com/react-slick/sponsor/8/avatar.svg"></a>
<a href="https://opencollective.com/react-slick/sponsor/9/website" target="_blank"><img src="https://opencollective.com/react-slick/sponsor/9/avatar.svg"></a>
Please see the [contributing guidelines](./CONTRIBUTING.md)
41 changes: 30 additions & 11 deletions __tests__/afterChange.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class SliderWithBeforeChange extends React.Component {
};
this.afterChange = this.afterChange.bind(this);
}

afterChange(currentSlide) {
console.log(currentSlide, "afterChange");
this.setState({
Expand All @@ -33,16 +34,34 @@ describe("After change Slider", function() {
const wrapper = mount(<SliderWithBeforeChange />);
expect(wrapper.state()).toEqual({ currentSlide: null });
wrapper.find(".slick-next").simulate("click");

//TBD . fix this test

// expect(wrapper.find('.slick-slide.slick-active').first().text()).toEqual('slide2');
// expect(wrapper.state()).toEqual({currentSlide: 1})
// wrapper.find('.slick-next').simulate('click')
// expect(wrapper.find('.slick-slide.slick-active').first().text()).toEqual('slide3');
// expect(wrapper.state()).toEqual({currentSlide: 2})
// wrapper.find('.slick-prev').simulate('click')
// expect(wrapper.find('.slick-slide.slick-active').first().text()).toEqual('slide2');
// expect(wrapper.state()).toEqual({currentSlide: 1})
setTimeout(() => {
expect(
wrapper
.find(".slick-slide.slick-active")
.first()
.text()
).toEqual("slide2");
expect(wrapper.state()).toEqual({ currentSlide: 1 });
}, 1);
wrapper.find(".slick-next").simulate("click");
setTimeout(() => {
expect(
wrapper
.find(".slick-slide.slick-active")
.first()
.text()
).toEqual("slide3");
expect(wrapper.state()).toEqual({ currentSlide: 2 });
}, 1);
wrapper.find(".slick-prev").simulate("click");
setTimeout(() => {
expect(
wrapper
.find(".slick-slide.slick-active")
.first()
.text()
).toEqual("slide2");
expect(wrapper.state()).toEqual({ currentSlide: 1 });
}, 1);
});
});
72 changes: 72 additions & 0 deletions docs/demos.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
"use strict";

import React from "react";
import Slider from "../src/slider";

import SimpleSlider from "../examples/SimpleSlider";
import SlideChangeHooks from "../examples/SlideChangeHooks";
import MultipleItems from "../examples/MultipleItems";
import MultipleRows from "../examples/MultipleRows";
import Responsive from "../examples/Responsive";
import Resizable from "../examples/Resizable";
import UnevenSetsInfinite from "../examples/UnevenSetsInfinite";
import UnevenSetsFinite from "../examples/UnevenSetsFinite";
import CenterMode from "../examples/CenterMode";
import FocusOnSelect from "../examples/FocusOnSelect";
import AutoPlay from "../examples/AutoPlay";
import AutoPlayMethods from "../examples/AutoPlayMethods";
import PauseOnHover from "../examples/PauseOnHover";
import Rtl from "../examples/Rtl";
import VariableWidth from "../examples/VariableWidth";
import AdaptiveHeight from "../examples/AdaptiveHeight";
import LazyLoad from "../examples/LazyLoad";
import Fade from "../examples/Fade";
import SlickGoTo from "../examples/SlickGoTo";
import CustomArrows from "../examples/CustomArrows";
import PreviousNextMethods from "../examples/PreviousNextMethods";
import DynamicSlides from "../examples/DynamicSlides";
import VerticalMode from "../examples/VerticalMode";
import SwipeToSlide from "../examples/SwipeToSlide";
import VerticalSwipeToSlide from "../examples/VerticalSwipeToSlide";
import CustomPaging from "../examples/CustomPaging";
import CustomSlides from "../examples/CustomSlides";
import AsNavFor from "../examples/AsNavFor";
import AppendDots from "../examples/AppendDots";

export default class App extends React.Component {
render() {
return (
<div className="content">
<SimpleSlider />
<MultipleItems />
<MultipleRows />
<Responsive />
<Resizable />
<UnevenSetsInfinite />
<UnevenSetsFinite />
<CenterMode />
<FocusOnSelect />
<AutoPlay />
<AutoPlayMethods />
<PauseOnHover />
<Rtl />
<VariableWidth />
<AdaptiveHeight />
<LazyLoad />
<Fade />
<SlideChangeHooks />
<SlickGoTo />
<CustomPaging />
<CustomArrows />
<CustomSlides />
<PreviousNextMethods />
<DynamicSlides />
<VerticalMode />
<SwipeToSlide />
<VerticalSwipeToSlide />
<AsNavFor />
<AppendDots />
</div>
);
}
}
2 changes: 0 additions & 2 deletions docs/demos.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
'use strict';

import React from 'react';
import Slider from '../src/slider';

import SimpleSlider from '../examples/SimpleSlider'
import SlideChangeHooks from '../examples/SlideChangeHooks'
import MultipleItems from '../examples/MultipleItems'
Expand Down
21 changes: 21 additions & 0 deletions docs/docs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
"use strict";

import React from "react";
import Demos from "./demos";

export default class Docs extends React.Component {
render() {
return (
<div className="">
<div className="title-bar primary">
<span className="title">React Slick</span>
</div>
<div className="">
<div className="">
<Demos />
</div>
</div>
</div>
);
}
}
21 changes: 0 additions & 21 deletions docs/docs.jsx

This file was deleted.

13 changes: 13 additions & 0 deletions docs/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
"use strict";

import React from "react";
import ReactDOM from "react-dom";
import Docs from "./docs";

React.initializeTouchEvents && React.initializeTouchEvents(true);
ReactDOM.render(
<React.StrictMode>
<Docs />
</React.StrictMode>,
document.getElementById("rapp")
);
8 changes: 0 additions & 8 deletions docs/index.jsx

This file was deleted.

Loading