1.0.5 • Published 7 months ago
jjsx v1.0.5
What is JJSX
JJSX allows you to use JSX syntax in any typescript project.
How does it work
Thanks to tsconfig, 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",
"types": ["jjsx"],
"lib": ["DOM", "ES2017"] // This is recommended but not required
// ...rest
}
// ...
}