Enum TypeScriptJsxMode

    • Enum Constant Detail

      • PRESERVE

        @Stability(Experimental)
        public static final TypeScriptJsxMode PRESERVE
        (experimental) Keeps the JSX as part of the output to be further consumed by another transform step (e.g. Babel).
      • REACT

        @Stability(Experimental)
        public static final TypeScriptJsxMode 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_NATIVE

        @Stability(Experimental)
        public static final TypeScriptJsxMode REACT_NATIVE
        (experimental) Keeps all JSX like 'preserve' mode, but output will have a .js extension.
      • REACT_JSXDEV

        @Stability(Experimental)
        public static final TypeScriptJsxMode REACT_JSXDEV
        (experimental) Same as REACT_JSX with additional debug data.
    • Method Detail

      • values

        public static TypeScriptJsxMode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (TypeScriptJsxMode c : TypeScriptJsxMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TypeScriptJsxMode valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null