Have you taken any react tutorials from their site. Js in the way you describe you want to manipulate some fields, or divs, or whatever, after the view is loaded.
Apr 15, 2018
2
Level 1
Using blade template data in react js component
I would like to use React js as a front-end for my laravel project . So i did the preset with:
php artisan preset react
Now i would like to know, how react component should be implemented in my blade views so they can access data passed to those views via controllers...
For exemple, in my homeController i pass some data:
return views('theview')->with('datas',$datas);
In theview.blade.php i can access them like this: {{ $datas }}
but how can i use this to update react component?
Please or to participate in this conversation.