Skip to content

michal-laskowski/contrib-jsx

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jsx

Go Reference

JSX parser for .jsx and .tsx files.

This package is primarily used to rewrite JSX in JS files (think styled-jsx). This package does not parse JS, rather it finds JSX within JS.

Install

go get github.com/matthewmueller/jsx

Usage

input := `export default () => <h1>hello world</h1>`
ast, _ := jsx.Parse("input.jsx", input)
fmt.Println(ast.String())

Contributors

License

MIT

About

JSX parser for .jsx and .tsx files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 98.1%
  • Makefile 1.8%
  • JavaScript 0.1%