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
Click to show internal directories.
Click to hide internal directories.