Skip to content

Should I use IJsInProcessRuntime or [JSImport] API for "regular javascript interop calls? #53650

Answered by javiercn
Matheos96 asked this question in Q&A
Discussion options

You must be logged in to vote

IJsInProcessRuntime is the only thing officially supported by Blazor. If you rely on [JSImport] and [JSExport] it's not guaranteed that some Blazor features work. That said, if you want the maximum performance (in 99% of the cases you don't need it) [JSImport] and [JSExport] are the way to go.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@javiercn
Comment options

@javiercn
Comment options

@Matheos96
Comment options

@javiercn
Comment options

@Matheos96
Comment options

Answer selected by Matheos96
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area-blazor Includes: Blazor, Razor Components
2 participants