Skip to content

tiborvass/go-jsx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React JSX without Node.js

Go-jsx is a convenient tool that converts React JSX code into Javascript without requiring Node.js.

With Go installed

$ go get github.com/tiborvass/go-jsx/cmd/jsx
$ cd $GOPATH/src/github.com/tiborvass/go-jsx/examples/basic-jsx-precompile
$ $GOPATH/bin/jsx example.jsx > example.js
$ diff -u example.jsx example.js

Notes

I'm not proud of the code in any way, I'm just happy it seems to work for my usecase. Feel free to fix bugs and improve the code.

License

The examples folder taken from Facebook's React repository have their own license at examples/LICENSE-examples.

The rest of the code is under the MIT License.

About

React JSX transpiler without Node.js (using Go)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages