How to pass props to React components in Laravel

,

One of the challenges I faced is to pass props from Laravel to React using Blade, and I’ve found a very quick workaround. Let’s suppose your react component gets an entity ID as a prop so you can load data when your component will mount, the idea here is to create a div in your Blade view which will contain the props you will be passing to your components

https://medium.com/@aminebenkeroum/how-to-pass-props-to-react-components-in-laravel-f9d32a0c5426

Blogbook : PHP | Javascript | Laravel | Corcel | CodeIgniter | VueJs | ReactJs | WordPress