es6-template-strings-jsx

1.0.1 • Public • Published

ES6 JSX-Tagged Template Strings to JS transform

This is a syntax transform which transforms ES6 JSX-Tagged Template Strings to JS. For example:

var element = jsx`
  <p>
    Hello, ${name}!
  </p>
`;

is being transformed into:

var element = React.createElement('p',
  'Hello, ', name
);

Installation

% npm install es6-template-strings-jsx

Using with Webpack

Webpack loader is included as es6-template-strings-jsx/loader.

Package Sidebar

Install

npm i es6-template-strings-jsx

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • andreypopp