react-paginate module does'not work


react-paginate module does'not work



I am trying to use "react-paginate" module for pagination.



https://www.npmjs.com/package/react-paginate



When I clone the repo it works absolutely fine. But when I try to imp[ort it in my project, css are missing.



Can anyone help?


<ReactPaginate
previousLabel="previous"
nextLabel="next"
breakClassName="break-me"
pageCount={5}
marginPagesDisplayed={2}
pageRangeDisplayed={5}
onPageChange={() => {}}
containerClassName="pagination"
subContainerClassName="pages pagination"
activeClassName="active"
/>



Image





What is the error that you are getting? Can you share some code? With this description I am pretty sure your question would get downvoted and closed :)
– Harkirat Saluja
Jun 29 at 6:17






github.com/AdeleD/react-paginate/issues/215 . Looks like something broke in the latest release.. Can you try with version 5.2.2 once?
– Harkirat Saluja
Jun 29 at 6:19






I have tried with version 5.2.2 but its same issue. I do not get any error but it doesnot contain any css and id displayed just as a list of numbers
– Pooja Nayak
Jun 29 at 6:50






I had used this repository maybe a year back for my project with dependency as "react-paginate": 4.2.0". Can you going down few versions and checking if it works fine?
– Harkirat Saluja
Jun 29 at 6:54


"react-paginate": 4.2.0"





Unfortunately it's the same issue
– Pooja Nayak
Jun 29 at 8:51









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Comments

Popular posts from this blog

paramiko-expect timeout is happening after executing the command

Export result set on Dbeaver to CSV

Opening a url is failing in Swift