1.0.5 • Published 7 months ago

jjsx v1.0.5

Weekly downloads
-
License
BSD-4-Clause
Repository
-
Last release
7 months ago

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
  }
  // ...
}
1.0.5

7 months ago

1.0.4

7 months ago

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago