PHP code example of jobyh / laravel-react-make
1. Go to this page and download the library: Download jobyh/laravel-react-make library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jobyh / laravel-react-make example snippets
% php artisan vendor:publish --tag react-stub
% php artisan make:react MyComponent
# -> resources/js/components/MyComponent.js
% php artisan make:react foo/bar/MyComponent
# -> resources/js/components/foo/bar/MyComponent.js
% php artisan make:react --jsx MyComponent
# -> resources/js/components/MyComponent.jsx
% php artisan make:react --class MyComponent
# -> resources/js/components/MyComponent.js