목록2023/01/17 (2)
Silver Library (Archived)
Note: this post is a scrapped version of explained pagination. See the link below to read the original text. Basic concept: we need as props to our Pagination component: totalCount: represents the total count of data available from the source. currentPage: represents the current active page. We'll use a 1-based index instead of a traditional 0-based index for our currentPage value. pageSize: rep..
Looks like I made a wrong assumption. Loop and iteration are not the same but sharing some common point. What are they? A for loop is a type of loop in programming that allows you to iterate over a sequence of elements, such as a list or an array. It typically includes a loop variable, which is used to keep track of the current element in the sequence, and a loop body, which contains the code th..