Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/live/deps.ts>ReactConfig

Open-Source web editor based on Preact, Tailwind and TypeScript. The other side of code.
Go to Latest
interface ReactConfig
import { type ReactConfig } from "https://deno.land/x/live@1.57.22/deps.ts";

Properties

optional
pragma: string

Replace the function used when compiling JSX expressions.

Defaults to React.createElement.

optional
pragmaFrag: string

Replace the component used when compiling JSX fragments.

Defaults to React.Fragment

optional
throwIfNamespace: boolean

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.

optional
development: boolean

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

Defaults to false,

optional
deprecated
useBuiltins: boolean

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

optional
refresh: boolean

Enable fast refresh feature for React app

optional
runtime: "automatic" | "classic"

jsx runtime

optional
importSource: string

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