4 ms·
How does it detect source element when hovered on preview? Preview would have a dynamic ID that maps to the source JSX.
by imvetri 5y ago
How does it detect source element when hovered on preview?
Preview would have a dynamic ID that maps to the source JSX.
- rheeseyb 5y agoAt the very high level, yeah that's pretty much what's happening. We generate IDs that we map to each of the elements statically and that we inject into the DOM so that we can capture metadata about the element. We're currently writing an in-depth explanation of how this all works, which will be uploaded on our blog in the very near future.
- imvetri 5y agoThanks for the explanation