in my common vite 8 + react 19 setup
using the library with:
import ReactPaginate from 'react-paginate';
<ReactPaginate breakLabel='...' nextLabel='' />
gives react error Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object
to fix the issue i have to use it the next way
<ReactPaginate.default breakLabel='...' nextLabel='' />
which in itself feels a little bit miserable
in my common vite 8 + react 19 setup
using the library with:
gives react error
Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: objectto fix the issue i have to use it the next way
which in itself feels a little bit miserable