Hello! Big Codecademy fan. Recently, a lesson had me incredibly confused - Object destructuring with props. I noticed in the lesson:
Just some sort of delineation so we aren’t confused that this is a standard type of destructuring we would do in a vanilla function component - it has a different context. (but the same method)
ChatGPT gave me this pointer that I thought was explained well:
In React, the specific behavior of automatically associating the passed-in argument with the
props object is a feature specific to functional components and is a convention used by React.
Thank you for your time. : )