I cannot find analog of Laravel's routing style in React js
Route::get('/categories', 'MenuItemController@getCategories')->name('getting-categories');
Here has component: ->name() Laravel Developers able use it in view like so:
<a href=>some link</a>
After the code link looks like:
<a href="/categories">some link</a>
If react has not similar functionality, help me to make a similar one.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire