just-jsx v6.1.2
Just JSX
compile JSX on the go.
Import
<script src="https://unpkg.com/just-jsx"></script>Use
Create a <script> tag and add an empty jsx attribute to it and it will compile automatically.
<script jsx>
document.body.append(
<h1>Hello World</h1>
)
</script>Compiler
The compiler is optional, you can use it by installing the package globally.
npm install just-jsx -gThe compiler will compile .js .jsx .ts and .tsx files as-is and will replace script tags with the jsx attribute in .html files with compiled code
Run the command jsxc to compile a directory or a file into out/
jsxc [filename/dirname] [-o outputDirname:out]compile a single file
jsxc file.jscompile all files in a directory
jsxc srcspecify a custom output directory
jsxc src -o build3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago