Topic: Pagination and Router

Nates premium asked 6 years ago


<PageItem active> <PageLink className="page-link"> 1 <span className="sr-only">(current)</span> </PageLink> </PageItem> Is it possible to have the pagination link to pages using <Link> so that Browser Routing works?

Try this workaround:


<Link className="page-link">1</Link>

Nates premium commented 6 years ago

Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

Bartłomiej Malanowski staff commented 6 years ago

do you use React Router?

Nates premium commented 6 years ago

Yes I am using it sir

Bartłomiej Malanowski staff commented 6 years ago

Could you please share your project with me at b.malanowski@mdbootstrap.com?

Nates premium commented 6 years ago

I cannot find you on github?

Bartłomiej Malanowski staff commented 6 years ago

you can - https://github.com/mattonit ;)


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Premium
  • Premium support: Yes
  • Technology: MDB React
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags