JSPM

jade-react-loader

0.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 17
  • Score
    100M100P100Q56947F
  • License MIT

Loader for Webpack, transforming Jade templates to React Javascript functions

Package Exports

  • jade-react-loader

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (jade-react-loader) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Jade to React JS loader for webpack

Usage

Like any loader can be set up in a configuration file but to use in a require statement:

var template = require("jade-react!./react/components/template.jade");
  • you will need React loaded in the browser
  • you can then render the template on the page like so:
React.render(template(locals), document.getElementById("reactivePlace"));

More Info

  • Uses the react-jade package and Jade templates are subject to the same limitations as listed there.
  • Nothing fancy at present
    • no async
    • no queries