Download the PHP package esign/laravel-react-components without Composer
On this page you can find all versions of the php package esign/laravel-react-components. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download esign/laravel-react-components
More information about esign/laravel-react-components
Files in esign/laravel-react-components
Package laravel-react-components
Short Description Use react components within laravel
License MIT
Homepage https://github.com/esign/laravel-react-components
Informations about the package laravel-react-components
Use react components within laravel
This packages allows you to register react components within your laravel application.
Installation
You can install the package via composer:
The package will automatically register a service provider.
Usage
To register the container for a react component a @reactComponent
directive has been included. Props may be passed as the second parameter:
In case you want some more customization you may always use the anonymous component. This component allows you to pass additional attributes and define as what HTML tag the component should be rendered:
To register the components in your frontend build, you may use the registerReactComponents
function included in this package. This can be published using the following command:
The file will be copied to resources/assets/js/utils/registerReactComponents.js
but may be moved to any other location.
Testing
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-react-components with dependencies
illuminate/support Version ^8.80|^9.0|^10.0|^11.0
illuminate/console Version ^8.80|^9.0|^10.0|^11.0
illuminate/filesystem Version ^8.80|^9.0|^10.0|^11.0