Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How does it detect source element when hovered on preview?

Preview would have a dynamic ID that maps to the source JSX.



At 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.


Thanks for the explanation




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: