Pagination and Router


Topic: Pagination and Router

Nates pro premium asked 7 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?

Bartłomiej Malanowski staff pro premium answered 7 years ago

Try this workaround:


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

Nates pro premium commented 7 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 pro premium commented 7 years ago

do you use React Router?

Nates pro premium commented 7 years ago

Yes I am using it sir

Bartłomiej Malanowski staff pro premium commented 7 years ago

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

Nates pro premium commented 7 years ago

I cannot find you on github?

Bartłomiej Malanowski staff pro premium commented 7 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
  • User: Pro
  • Premium support: Yes
  • Technology: MDB React
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No