₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,326,985 members, 8,428,917 topics. Date: Thursday, 18 June 2026 at 08:11 AM

Toggle theme

How Is This Done In Reactjs - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingHow Is This Done In Reactjs (660 Views)

1 Reply (Go Down)

How Is This Done In Reactjs by longlife101(op): 10:07am On Aug 03, 2022
Hello Guys,

How can the following be done in Reactjs?:

I'm creating an app that's powered by an API, and I want it so that when the front page reaches a certain length it should [AUTO] break into another page, say 2, 3, 4, and so forth. Like here in Nairaland. (See attached images)

Any heads-up? or any documentation that can help? (Just not having any luck googling).

Re: How Is This Done In Reactjs by jbreezy: 10:11am On Aug 03, 2022
Make research on pagination. It's called pagination.
Re: How Is This Done In Reactjs by silento(m): 10:40am On Aug 03, 2022
You do pagination from backend while querying your db
Re: How Is This Done In Reactjs by Nobody: 11:30am On Aug 03, 2022
Easiest way is with Syncfusion pagination or pager
Re: How Is This Done In Reactjs by longlife101(op): 11:43am On Aug 03, 2022
Thanks guys, pagination it is: currently on it.
Re: How Is This Done In Reactjs by ricson11(m): 12:08pm On Aug 03, 2022
longlife101:
Hello Guys,

How can the following be done in Reactjs?:

I'm creating an app that's powered by an API, and I want it so that when the front page reaches a certain length it should [AUTO] break into another page, say 2, 3, 4, and so forth. Like here in Nairaland. (See attached images)

Any heads-up? or any documentation that can help? (Just not having any luck googling).
Why not download pagination package and configure it instead
Re: How Is This Done In Reactjs by longlife101(op): 10:39pm On Aug 03, 2022
Thanks again guys!!

I've been able to implement "pagination" into my React web app. No package installation. All frontend code. -A combination of "useState" and "useEffect"

Took the whole day though to wrap my head around it.

Lesson: one doesn't need to be very good at programming before trying out "big challenges". (Initial challenge was not even knowing the "name" of what I could have easily googled for...another Lesson: first identify/know your challenge cheesy)

Kudos

1 Reply

Guys, I Need Help With This Reactjs Issue Please.Adminlte Jquery Datatable In ReactjsSimple Form Validation In Reactjs Example234

Front-end Dev Assignment Issue.I This The Best Way To Go About This?Your Opinion