How Is This Done In Reactjs - Programming - Nairaland
Nairaland Forum › Science/Technology › Programming › How Is This Done In Reactjs (660 Views)
| 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: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 )Kudos
|
Guys, I Need Help With This Reactjs Issue Please. • Adminlte Jquery Datatable In Reactjs • Simple Form Validation In Reactjs Example • 2 • 3 • 4
Front-end Dev Assignment Issue. • I This The Best Way To Go About This? • Your Opinion
)