Skip to content
Render jsx code as compiled JS in a script tag
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
alias/Pug/Filter
examples
src/Pug
tests
.codeclimate.yml
.gitattributes
.gitignore
.styleci.yml
.travis.yml
LICENSE
README.md
composer.json
phpunit.xml

README.md

pug-filter-react

Latest Stable Version Build Status Code Climate Test Coverage StyleCI

This template:

body
  :jsx
    /** @jsx dom */
    var dom = React.createElement;

    ReactDOM.render(
      <h1>Hello world!</h1>,
      document.getElementById('main')
    );

will be rendered like this:

<body>
  <script type="text/javascript">
    "use strict";

    /** @jsx dom */
    var dom = React.createElement;

    ReactDOM.render(dom(
        "h1",
        null,
        "Hello world!"
    ), document.getElementById('main'));
  </script>
</body>
You can’t perform that action at this time.