1.0.1
1.0.1.0
MIT
The Requires
- php >=5.4.0
The Development Requires
1.0.0
1.0.0.0
MIT
The Requires
- php >=5.4.0
The Development Requires
Wallogit.com
2017 © Pedro Peláez
Since ReactJS component could be renderred partially in an app, this extension converts reactapp directive into HTML and JavaScript. Let you write readable code in your twig templates., (*1)
composer require corneltek/twig-react-directive "*"
use TwigReactDirective\ReactDirectiveExtension; $twig = new Twig_Environment($loader); $twig->addExtension(new ReactDirectiveExtension);
{% reactapp "MyApp" with { title: 'Todo List' , items: [ ... ] } %}
{% set config = { ... } %}
{% reactapp "MyApp" with config %}
The code above outputs:, (*2)
MIT
MIT