React Components can almost do this. There are React dev tools to inspect each Component on the page (not just html element). You could jump to source and copy/paste the Component in another app.
I'm personally fond of Malbolge with Rust-bindings, but that's not quite as popular as React yet.