Hii Kartik,
Create a route that maps everything to one controller, like so:
Route::get('/{path?}', [
'uses' => 'ReactController@show',
'as' => 'react',
'where' => ['path' => '.*']
]);
Then in your controller, just show the HTML page that contains the react root document:
class ReactController extends Controller {
public function show () {
return view('react');
}
}
Then do everything as normal with react router.
Hope this work fine!!
To know more about React, We highly recommend to join React Training online today.
Thank You!!