twig2react / twig2react
Convert twig files to JSX
1.0.2
2017-11-29 22:16 UTC
Requires
- php: >=7.0
- symfony/console: >=3.3.0
- symfony/dom-crawler: >=3.3.0
- symfony/filesystem: >=3.3.0
- symfony/finder: >=3.3.0
- symfony/http-foundation: >=3.3.0
Requires (Dev)
- php: >=7.0
- phpunit/phpunit: ^5.0
This package is not auto-updated.
Last update: 2022-08-11 16:28:31 UTC
README
Twig to React
A command line tool born out of necessity, Twig2React will convert your .twig files into JSX for use with react.js.
How to start
Install twig2react to your project
$ composer require "twig2react/twig2react ~1.0.2"
Generate JSX files using the twig2react command
$ ./twig2react generate <source> <destination>
Or install twig2react globally using composer
$ composer global require "twig2react/twig2react ~1.0.2"
Generate JSX files using the twig2react command
$ twig2react generate <source> <destination>