0.3.0 • Published 5 years ago

isomorphic-jsx v0.3.0

Weekly downloads
198
License
MIT
Repository
github
Last release
5 years ago

GitHub license NpmVersion Build Status Coverage Status Gitter

A JSX-powered templating library for building multi page websites, use the JSX syntax both in the browser and in Node.js. A powerfull library in under 100 lines of code!

npm install --save isomorphic-jsx
npm install --save-dev @babel/core @babel/preset-react

You also need to install and setup babel with the react preset for babel preset.

Usage

You need to setup the following in .babelrc:

{
  presets: [
    [ '@babel/preset-react', {
        pragma: 'dom',
        throwIfNamespace: false
    }]
  ]
}

An example of a simple test case:

import { dom } from 'isomorphic-jsx';

const Test = ({children}) => <div>{children}</div>;

console.log( <Test>tester</Test> ); // "<div>tester</div>"

Example repos that use isomorphic-jsx:

0.3.0

5 years ago

0.2.0

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago