DEV Community

Mrigank Bhardwaj
Mrigank Bhardwaj

Posted on

Creating an Interactive Authors Directory: Fetching Data, Pagination, and DOM Updates

πŸš€ Excited to share my latest project! πŸš€
I've built a dynamic Authors Page that showcases author names, images, bios, and personal website links. Here's a quick rundown of what I've accomplished:
πŸ”Ή Fetched Data from API: Seamlessly retrieved author data from an API.
πŸ”Ή Dynamic DOM Updates: Successfully appended the fetched data to the DOM.
πŸ”Ή Pagination: Displayed 8 authors per page and implemented pagination to navigate through the rest. Once you reach the end, the button updates to "No more data to load," and the cursor changes to "not-allowed."
πŸ”Ή Bio Limiting: For authors with lengthy bios, I've set a 50-word limit, followed by "(...)" if the bio exceeds this limit.

✨ Key Takeaways:
1️⃣ Fetching and displaying data from an API.
2️⃣ Dynamically updating the DOM.
3️⃣ Implementing pagination for better user navigation.
4️⃣ Handling long bios with a word limit.
5️⃣ Displaying user-friendly error messages.
Check it out and let me know what you think! Your feedback and connections are always welcome.
To see the video of my project CLICK HERE
πŸ‘ Don't forget to like and subscribe!
#learningjourney #FullStackDevelopment

Top comments (0)