Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

ReactConfig

interface ReactConfig {
development?: boolean;
importSource?: string;
pragma?: string;
pragmaFrag?: string;
refresh?: boolean;
runtime?: "automatic" | "classic";
throwIfNamespace?: boolean;
useBuiltins?: boolean;
}

§Properties

§
development?: boolean
[src]

Toggles plugins that aid in development, such as @swc/plugin-transform-react-jsx-self and @swc/plugin-transform-react-jsx-source.

Defaults to false,

§
importSource?: string
[src]

Declares the module specifier to be used for importing the jsx and jsxs factory functions when using runtime 'automatic'

§
pragma?: string
[src]

Replace the function used when compiling JSX expressions.

Defaults to React.createElement.

§
pragmaFrag?: string
[src]

Replace the component used when compiling JSX fragments.

Defaults to React.Fragment

§
refresh?: boolean
[src]

Enable fast refresh feature for React app

§
runtime?: "automatic" | "classic"
[src]

jsx runtime

§
throwIfNamespace?: boolean
[src]

Toggles whether or not to throw an error if a XML namespaced tag name is used. For example: <f:image />

Though the JSX spec allows this, it is disabled by default since React's JSX does not currently have support for it.

§
useBuiltins?: boolean
[src]

Use Object.assign() instead of _extends. Defaults to false.