6 Matching Annotations
  1. Sep 2020
    1. I don't think componentDidRender is a substitute for componentDidMount because the component can render multiple times when props change after it's mounted once.
    2. so mount can be called "placed"?
    3. Ignoring React you can think of these two native functions as mounting: replaceChild appendChild Which are likely the most common functions React uses to mount internally.
    4. Mounting refers to the component in React (created DOM nodes) being attached to some part of the document. That's it!
    5. And, yes, Mounting is also an unfortunate/confusing name, if you ask me. IMHO componentDidRender and componentWillRender would be much better names.
    6. This process of creating instances and DOM nodes corresponding to React components, and inserting them into the DOM, is called mounting.