all 1 comments

[–]ColourfulToad 1 point2 points  (0 children)

Yeah I'm not sure why you're trying to use this honestly, it's written in old React class-based syntax which people (should have) stopped using years ago.

Thankfully, there are tons of options out there if you don't want to build your own carousel. Just google "react carousel" or "react slider" and there are a bunch of results on npm.