Yes. But isn't there a section that has the logic ...
# contributing
i
Yes. But isn't there a section that has the logic for writing out the Web Component portion that's used? Or is all of that also defined within a React Component? I've never used Web Components before so I don't know what the code for making one looks like. 😅
r
hey! let's talk in a thread
> Or is all of that also defined within a React Component? This.
The react SDK uses the supertokens-web-js SDK for all the business logic and API calls
i
Okay. Does that mean the Web Component is defined in there? (Also to be sure, am I making sense when I refer to the
Web Component
? The Web Component would include whatever is leveraging the Shadow DOM.)
r
the web-js SDK has nothing to do with UI
i
Gotcha
So on the right, there's a
shadow-root
that's attached to the DOM. It has its own sets of HTML elements, including some `style`s and the physical
form
. My question was where (in the codebase) does everything inside
shadow-root
get created.
r
it's in lots of different places. This component is reused in several places and lots of components make this one up.
So there isn't one place where it all exists
i
Ahhhhhhhhhh. Okay I see
i
Great! That's helpful! Thanks!
2 Views