opw / yii2-react
The React.js library extension for the Yii framework
Installs: 3 239
Dependents: 0
Suggesters: 0
Security: 0
Stars: 11
Watchers: 3
Forks: 1
Open Issues: 1
Type:yii2-extension
pkg:composer/opw/yii2-react
Requires
- bower-asset/react: *
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2021-08-07 00:39:53 UTC
README
React.js and JSXTransformer.js Assets
Installation
The preferred way to install this extension is through composer.
Add to the require section of your composer.json file:
"opw/yii2-react": "dev-master"
And run in terminal
composer update
If you see the following error message:
Your requirements could not be resolved to an installable set of packages.
Change in the composer.json file
"minimum-stability": "dev",
And add
"prefer-stable": true,
Usage
Add to assets/AppAsset.php file:
'opw\react\JSXTransformerAsset', // optional
'opw\react\ReactAsset'
For don't use JSXTransformer, use react-tools and add your JSX compiled files in AppAsset.php:
public $js = [
'build/HelloWorld.js'
];
Further Information
Please, check the React.js site documentation for further information about its configuration options.
Development
Web & Mobile development
www.mobilizy.com.br