Interviews
开始使用
准备
准备
新
与我们合作推广 ->
价格
登录 / 注册
获得完整访问权限
描述
解决方案
已保存的代码
Transfer List
Yangshun Tay
Ex-Meta Staff Engineer
语言
难度
中等
建议在面试中花费的时间
3
0
分钟
30 分钟
Build a component that allows transferring of items between two lists.
Requirements
There are two lists each initially containing 4 items.
Each item has a checkbox that can be checked/unchecked.
Transferring
Clicking on the double arrow buttons will transfer all items from one list to the other, as specified by the direction of the arrows.
Clicking on the single arrow buttons will transfer only the selected items, as specified by the direction of the arrows.
Transferred items are added to the bottom of the destination list.
Item selection (checked) states are preserved after transferring.
Buttons are disabled if there are no relevant items to be transferred.
查看你需要构建的内容
在这些公司提问
高级功能
购买高级版以查看出题公司。
查看计划
高级方案
购买高级版,解锁官方解决方案及所有优质学习资源。
所有高级问题
高质量解决方案
节省时间的重点
前端系统设计指南
查看订阅计划
您必须登录才能查看您的保存版本
登录
创建一个帐户
文件
App.js
styles.css
public
index.html
src
App.js
index.js
styles.css
package.json
目前,无法创建或重命名文件。在面试期间,将多个组件写入单个文件中是可以接受的。
加载编辑器
加载编辑器
浏览器
控制台
Click to go back
Click to go forward
Refresh preview
过滤日志
按日志级别筛选
所有日志级别
信息
警告
错误
JavaScript 控制台
console.log()
语句将显示在此处。
React
标记为已完成
保存到云端