It works quite well especially in .NET 9!
And exporting to WASM works nearly identically to DllExport.
I used that to shift all the heavy lifting to .NET 9 AOT compiled to WASM in a fun little side project I've been working on: https://evo.ryanpeden.com