|
此文章由 bpbsfsj 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 bpbsfsj 所有!转贴必须注明作者、出处和本声明,并保持内容完整
本帖最后由 bpbsfsj 于 2017-8-3 14:44 编辑
刚有鞋穿的人 发表于 2017-8-3 13:48 
好奇别人的要求是什么
react做个form,
The task is to write a simple React application that works with data from GitHub. It should:
* allow the user to type in a GitHub username and click a button called 'Load Repos'
* show a table of repos returned with columns: id, name, description, created at
* allow user to show the default order, or sort on id or name
* show a button per row called "Hide" which removes it from the list
* show a message under the table which says "Not showing 'x' repos" or another appropriate message
Considerations:
* what validation on the 'username' input is needed
* this would be part of a much larger app and that the repo list will be used by other higher-level components
* how to re-render React when anything changes
* consider any failure case when loading the repo list
Not needed:
* pagination (just the first page of results is fine)
* CSS, though feel free to add anything which helps
吐槽下他们给的范例api fetch居然用的是jquery ajax
fetch是react官方推荐的方法,而不是用其他promise库,jquery ajax大概是最烂的ajax lib,即使是用Q也好那么一点 |
|