With this package, you can render your React component from within your blade templates/components.
You can even use server side rendering (SSR) if you want to.
You can install the package via composer:
composer require brokerchooser/inertia-react-components-in-blade
You can then publish the component map template:
php artisan vendor:publish --tag=component-map
You can also publish the ExampleComponent:
php artisan vendor:publish --tag=example
To use the package within your project, you first need to set up Inertia with Server Side Rendering (SSR).
Then you can update your files to use the package, like this: https://github.com/BrokerChooser/inertia-react-components-in-blade-example
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.