A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.rs/mdxjs/latest/mdxjs/enum.JsxRuntime.html below:

JsxRuntime in mdxjs - Rust

pub enum JsxRuntime {
    Automatic,
    Classic,
}
Expand description

JSX runtimes (default: JsxRuntime::Automatic).

§

Automatic runtime.

With the automatic runtime, some module is expected to exist somewhere. That modules is expected to expose a certain API. The compiler adds an import of that module and compiles JSX away to function calls that use that API.

§

Classic runtime.

With the classic runtime, you define two values yourself in each file, which are expected to work a certain way. The compiler compiles JSX away to function calls using those two values.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4