brainhubeu / react-carousel

A pure extendable React carousel, powered by Brainhub (craftsmen who ❤️ JS)
https://brainhub.eu/
MIT License
1.07k stars 164 forks source link

My project does not have a left arrow and a right arrow #660

Closed dquanghuy4444 closed 3 years ago

dquanghuy4444 commented 3 years ago

hi sir , i installed ur library , everything is okay but i dont see 2 arrows . i added ur code in https://brainhubeu.github.io/react-carousel/docs/examples/defaultArrows but still havent arrows . so could u solve me this issue ?? my project : https://github.com/dquanghuy4444/poshop-mobilestore thank u so much

RaulTsc commented 3 years ago

+1

chr0m1ng commented 3 years ago

Same here, any plugin works for me

chr0m1ng commented 3 years ago

Ok, just found out here that the npm install is pointing to the v1, that's why it isn't working, the docs are showing the v2 but not telling people to force the install!

Just to be sure that you're in v1, try this and you'll see the arrows:

<Carousel arrows>
  <img src={imageOne} />
  <img src={imageTwo} />
  <img src={imageThree} />
</Carousel>

Install the v2 and use the docs version and it should work!

npm i @brainhubeu/react-carousel@^2.0.1
dquanghuy4444 commented 3 years ago

Ok, just found out here that the npm install is pointing to the v1, that's why it isn't working, the docs are showing the v2 but not telling people to force the install!

Just to be sure that you're in v1, try this and you'll see the arrows:

<Carousel arrows>
  <img src={imageOne} />
  <img src={imageTwo} />
  <img src={imageThree} />
</Carousel>

Install the v2 and use the docs version and it should work!

npm i @brainhubeu/react-carousel@^2.0.1

ok sir , it's work . thanks u <3