pug-php/pug-filter-react

Render React JSX code as JavaScript in a script tag

Maintainers

👁 kylekatarn

Package info

github.com/pug-php/pug-filter-react

pkg:composer/pug-php/pug-filter-react

Statistics

Installs: 91 442

Dependents: 1

Suggesters: 0

Stars: 3

Open Issues: 0

1.1.0 2017-10-03 12:29 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT b0f4ff296a90370d1d80b5d1224aa28562420746

  • Kyle Katarn <kylekatarnls.woop@gmail.com>

This package is auto-updated.

Last update: 2026-06-16 18:56:21 UTC


README

👁 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>

Security contact information

To report a security vulnerability, please use the Tidelift security contact. Tidelift will coordinate the fix and disclosure.