Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,152,317 members, 7,815,604 topics. Date: Thursday, 02 May 2024 at 03:08 PM

How Is This Done In Reactjs - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / How Is This Done In Reactjs (531 Views)

Adminlte Jquery Datatable In Reactjs / Simple Form Validation In Reactjs Example / Simple Form Validation In Reactjs Example (2) (3) (4)

(1) (Reply) (Go Down)

How Is This Done In Reactjs by longlife101: 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: 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: 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

3 Likes

(1) (Reply)

Advise On Starting A Startup / Someone Please Put Me Through This (C++) PICS / Help Review This Data Analytics Project

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 10
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.