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-bladeYou can then publish the component map template:
php artisan vendor:publish --tag=component-mapYou can also publish the ExampleComponent:
php artisan vendor:publish --tag=exampleTo 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 testPlease 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.