2020年04月11日腾讯一面总结

1. React hooks的理解和使用

2. React中的数据传递和context的数据传递细节

- 16.3之前的context发展, 此api将在react 17中废弃。
     1. 需要在父组件中定义getChildContext中返回数据
     2. 子组件需要在对象上定义 contextTypes 要不然无法试用this.context 访问到context数据。
     3. 如果中间有子组件在componentWillUpdate中返回了false,则会阻止context向下传递。
- 16.3以后的context
    1. 在16.3-alpha中,react加入了createContext API来重构context功能。
    2. 试用createContext来生成api,会返回一个Provider, Consumer。 Provider上的props会被 Consumer订阅。 可以传递函数用来修改数据

3. React组件的发展流程 (高阶组件等)

4. 原型链 和 闭包

5. cache-control的细节

可参考此文章 https://blog.csdn.net/u012375924/article/details/82806617

6. react 性能优化

这块后续自己思考可以分为俩方面作答, 1是react本身的性能优化, 2是引申出前端性能优化

7. 数组的类型判断

原文地址:https://www.cnblogs.com/clearfix/p/12693996.html