lifecycle in react.js

发布时间 2023-05-29 18:30:29作者: saaspeter

摘抄自react in action , see chapter4:

直接上图:

 DEFINITION Mounting is the process of React inserting your components into the real DOM. Once done, your component is “ready,” and it’s often a good time to do things like perform HTTP calls or read cookies. At this point you’ll also be able to access the DOM element via something called a ref, discussed in future chapters.