Do Hooks replace render props and higher order components?
题目类型: 行为面试题
这是一道行为面试题,常见于澳洲IT公司面试中。
难度: medium
参考答案摘要
Both render props and higher-order components render only a single child but in most of the cases Hooks are a simpler way to serve this by reducing nesting in your tree.
本题提供 STAR 原则详细解答和技术解析,登录匠人学院学习中心即可查看完整答案。