akiran / akiran/react-slick

I'm using the CDN and its exporting a React Element instead of a React Component making it unusable. Can you fix this please?

Open
#1,709 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
11.9k
Forks
2.1k
PR merge metrics
No merged PRs in 30d

Description

I'm using this link

-

This is the error I get when trying to use it
![image](https://user-images.githubusercontent.com/36201566/72180060-8e66a980-33a3-11ea-82fc-12e77552adb7.png)

I'm trying to use it outside of a class in a functional component.
![image](https://user-images.githubusercontent.com/36201566/72180175-d7b6f900-33a3-11ea-8eab-36fc6f4fe2d8.png)

It would be optimal if an object of methods could be exported from the CDN so in my code I could require the Slider Component like so.
![image](https://user-images.githubusercontent.com/36201566/72180424-6461b700-33a4-11ea-85a8-6ed7055bfb29.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.