esbuildmobile

package
v0.0.0-...-aca8a38 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TransformJSX

func TransformJSX(input string, options *TransformOptions) (code string, err error)

Returns code and error `TransformOptions` is optional

Types

type TransformOptions

type TransformOptions struct {
	// contains filtered or unexported fields
}

func (*TransformOptions) SetJSXFactory

func (t *TransformOptions) SetJSXFactory(newJSXFactory string) *TransformOptions

Change `React.createElement` to custom name

func (*TransformOptions) SetJSXFragment

func (t *TransformOptions) SetJSXFragment(newJSXFragment string) *TransformOptions

Change `React.Fragment` to custom name

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL