Great article and explanation, you make it so clear and concise very well done. Just wanted to make sure I understood that the ref isn't needed in the final code snippet.
You mean in ModalBaseWithAnalytics? (this is the last one)
Or for one of the ModalBase before? On <ModalBase it's always needed, since it passes ref down to the div. On ModalBaseWithAnalytics it's not needed, since the ref is created inside of this component
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Great article and explanation, you make it so clear and concise very well done. Just wanted to make sure I understood that the ref isn't needed in the final code snippet.
You mean in
ModalBaseWithAnalytics
? (this is the last one)Or for one of the
ModalBase
before? On<ModalBase
it's always needed, since it passesref
down to the div. OnModalBaseWithAnalytics
it's not needed, since the ref is created inside of this component