# interview-task-repositories **Repository Path**: globus/interview-task-repositories ## Basic Information - **Project Name**: interview-task-repositories - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2021-06-25 - **Last Updated**: 2022-07-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 面试任务 - git 仓库 ## 要求 使用 react 不可以使用class组件,只能使用函数组件 使用 hooks 方式 不可以使用第三方库 ## 页面显示 * - 🌟 - 🍴 * react - 🌟 69012 - 🍴 12581 * reselect - 🌟 7291 - 🍴 214 * redux - 🌟 31705 - 🍴 6581 * recompose - 🌟 5671 - 🍴 342 [上一页按钮][下一页按钮][当前页数/总页数] ## 数据接口 > 数据接口:https://api.github.com/search/repositories?q=react&page=2
> 功能:获取 repositories 数据 > 请求方式:GET ## 任务描述 1. 使用数据接口获取数据,按 "页面显示" 小节那样显示出来 2. 已经下载过的页面,不需要再下载,可以直接从缓存中获得数据 3. 缓存只能缓存 5 个页面(可以在代码中配置这个数量) 4. 例如当前页面是 1,点击下一页,还没下载完第 2 页,那么还是显示第 1 页的数据,第 2 页的数据下载完之后,才显示第 2 页的数据