jjsx
v3.0.6
Published
just jsx
Maintainers
Readme
What is JJSX
JJSX allows you to use JSX syntax in any project. Compatible with esbuild, tsup, tsconfig with bun etc... It is framework agnostic. 949 bytes (gzipped) import cost.
How does it work
Thanks to tsconfig/esbuild, it overrides jsx & fragment factory methods.
Why should I use JJSX
If you want to use JSX syntax without any other overhead, thats the most minimal library you can use.
How to use JJSX
After installing jjsx, adding only 4 properties to tsconfig is enough:
{
"compilerOptions": {
"jsx": "react",
"jsxFactory": "JJSX.jsxFactory",
"jsxFragmentFactory": "JJSX.fragmentFactory",
"lib": ["DOM"] // This is recommended but not required
// ...rest
}
// ...
}