Giter VIP home page Giter VIP logo

react-201703's People

Contributors

crystal2030 avatar hasikii avatar jasenpan1987 avatar jiaozhu303 avatar llfly avatar rococolate avatar sim-rire avatar wanghaiqiang123 avatar wuazhu avatar wyyew avatar xiaozhen3 avatar yangyuhaobit avatar yonycat avatar zhangdongming0607 avatar zhufengreact avatar zhupoliang avatar

Stargazers

 avatar

Watchers

 avatar

react-201703's Issues

第三周测试题讨论

下面我对几道测试题的理解,如果对解释有疑问,欢迎讨论。如果对其他题目有问题,也可以提出来。

第5题 答案B D(原答案有误)

A选项是可忽略= =
B选项是说组件是一个构造函数

第8题 答案 B C D

这道题C选项的本意是如果你用Component定义组件,并且调用constructor的话,必须使用super()。 这本身是没有问题的。当然会有歧义,因为你当然也可以不调用constructor。这一题大家掌握这个知识点就好,文字表述上就不要太纠结了。

第10题 答案A C(原答案有误)

第11题 答案A C

主要还是考察生命周期的执行顺序。关于B选项,如果shouldComponentUpdate返回的是false,那componentWillUpdate就不会被调用。

第12题 答案A D (原答案有误)

唯一要注意的是A选项中ref是不能写到用functional components(也就是用function方式定义的组件)上的。 参考链接

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.