In 2015 one of the founders wrote a really interesting post about how they did it [0].
> Pulling this off was really hard; we’ve basically ended up building a browser inside a browser.
[0] https://madebyevan.com/figma/building-a-professional-design-...