attachShadow() method in react-scan source code.

In this article, we will review the below code snippet from react-scan source code.
⛶const initRootContainer = (): RootContainer => {
if (rootContainer && shadowRoot) {
return { roo...