lifecycle in react.js
摘抄自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.
Summary of React component lifecycle methods