Skip to content

Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object #530

Description

@dkornilove

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions