Skip to content

Singleware/jsx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSX

This package provides some classes to help you create JSX statements in a easy way.

Configuration

Add the specified lines below into your tsconfig.json

{
  "compilerOptions": {
    "jsx": "react",
    "jsxFactory": "JSX.create"
  }
}

Usage

import * as JSX from '@singleware/jsx';

const block = (
  <div>
    <span>Some test with a</span>
    <a href="/test">test link.</a>
  </div>
);

You can use with node.js or browser.

Install

Using npm:

npm i @singleware/jsx

License

MIT © Silas B. Domingos