pug-php / pug-filter-react
Render React JSX code as JavaScript in a script tag
Fund package maintenance!
kylekatarnls
Open Collective
Tidelift
Installs: 80 958
Dependents: 1
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- nodejs-php-fallback/react: ^1.3.0
- pug-php/pug: ^2.0 || ^3.0
Requires (Dev)
- codeclimate/php-test-reporter: dev-master
- phpunit/phpunit: >=4.8 <6.0
This package is auto-updated.
Last update: 2024-10-16 14:42:06 UTC
README
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.