zhufengreact / react-201703 Goto Github PK
View Code? Open in Web Editor NEW珠峰React课程第3期仓库
License: MIT License
珠峰React课程第3期仓库
License: MIT License
A选项是可忽略= =
B选项是说组件是一个构造函数
这道题C选项的本意是如果你用Component定义组件,并且调用constructor的话,必须使用super()。 这本身是没有问题的。当然会有歧义,因为你当然也可以不调用constructor。这一题大家掌握这个知识点就好,文字表述上就不要太纠结了。
主要还是考察生命周期的执行顺序。关于B选项,如果shouldComponentUpdate返回的是false,那componentWillUpdate就不会被调用。
唯一要注意的是A选项中ref是不能写到用functional components(也就是用function方式定义的组件)上的。 参考链接
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.