@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-20T00:39:28.890Z") @Stability(value=Experimental) public enum TypeScriptJsxMode extends Enum<TypeScriptJsxMode>
https://www.typescriptlang.org/docs/handbook/jsx.html| Enum Constant and Description |
|---|
PRESERVE
(experimental) Keeps the JSX as part of the output to be further consumed by another transform step (e.g.
|
REACT
(experimental) Converts JSX syntax into React.createElement, does not need to go through a JSX transformation before use, and the output will have a .js file extension.
|
REACT_JSX
(experimental) Passes `key` separately from props and always passes `children` as props (since React 17).
|
REACT_JSXDEV
(experimental) Same as `REACT_JSX` with additional debug data.
|
REACT_NATIVE
(experimental) Keeps all JSX like 'preserve' mode, but output will have a .js extension.
|
| Modifier and Type | Method and Description |
|---|---|
static TypeScriptJsxMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TypeScriptJsxMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Experimental) public static final TypeScriptJsxMode PRESERVE
@Stability(value=Experimental) public static final TypeScriptJsxMode REACT
@Stability(value=Experimental) public static final TypeScriptJsxMode REACT_NATIVE
@Stability(value=Experimental) public static final TypeScriptJsxMode REACT_JSX
https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-1.html#react-17-jsx-factories@Stability(value=Experimental) public static final TypeScriptJsxMode REACT_JSXDEV
public static TypeScriptJsxMode[] values()
for (TypeScriptJsxMode c : TypeScriptJsxMode.values()) System.out.println(c);
public static TypeScriptJsxMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2021. All rights reserved.