lineman-react
React.js lineman plugin
Last updated 6 years ago by jsnrth .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install lineman-react 
SYNC missed versions from official npm registry.

lineman-react

Compiles JSX files in your Lineman app. Uses grunt-react under the hood.

Installation

$ npm install lineman-react --save

Generated files

This will compile all of the JSX files in app/js/**/*.jsx to generated/jsx/**/*.js, and then include them in the generated app.js file. This does generate and concatenate sourcemaps for the compiled JSX files onto app.js.map.

You will need to include the JSX directive at the top of each JSX file.

/** @jsx React.DOM */

window.app.components.MyComponent = React.createClass({

  render: function(){
    return <p>A react component!</p>;
  }

});

License

MIT License.

Current Tags

  • 0.0.1                                ...           latest (6 years ago)

1 Versions

  • 0.0.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (2)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |