Welcome to the third week of the React developer challenge! This week, your task is to add infinite scrolling to your table and use a larger data set sent into the Solution component through a prop.
If you haven’t completed the first 2 weeks, you’ll need to do so as this week’s code is built on top of the previous weeks.
To help you achieve the goals for this week, the following resources (along with the resources from the last 2 weeks) could be useful.
Goal: Use the larger data set from utils/data.js and send to your Solution component through a prop in App.tsx. Then implement an infinite scroll that loads 10 rows when the table initializes, and another 5 rows.
Hint: When loading in the data from a prop, you should be using React state.
To receive credit for this week, you will need to accomplish the following tasks:
1) Change the name of the title in App.tsx to include your name and “Week 3 – Infinite Scroll”. It should resemble the title shown in the screenshot at the top of this post.
2) Use the larger data set in utils/data.js and send that into your solution component through a prop in App.tsx. Also, you will need to add statuses to the individual tasks in data.js.
3) Implement an infinite scroll to your table with the help of built in Table or AnalyticalTable props. You should load 10 rows on initialization and 5 rows after scrolling to the bottom. You will need to apply a style to the table to limit its growth so you can scroll.
4) Take a screenshot with your full table, header, scroll bar, and modified statuses and post it in THIS discussion.
Note: If you encounter issues with your frontend not loading, ensure that you have imported all the necessary dependencies. Unfortunately, the debugging experience may not provide clear error messages. One useful approach is to comment out sections of code until the UI loads, then gradually uncomment to isolate the problematic line.
Get ready to enhance your React skills by incorporating the power of SAP UI5 Web Components into a custom component! Good luck and happy coding!
Here are my submission for week 3.
Picture1, at the top of the page. There are totally 15 rows in the table now. 10 rows were from the initial load plus more 5 rows added by a setRows function on onLoadMore event that has automatically raised according to the height of the table.
Picture2, at the bottom of the page after the 3rd scrolling down.