React JS with Laravel 8 API: How to edit and update data in React JS with laravel 8 API - Part 4

preview_player
Показать описание
In this video, I have taught how to edit and update data into database in React JS with laravel 8 rest api

Playlist: React JS with Laravel 8 API

Support your Creator with Paypal: (even with $1)
Username: @vedprakashn

Рекомендации по теме
Комментарии
Автор

Thanks a ton. Your tutorials are awesome.

soultouchingsongs
Автор

Thanks again i hope you will do for us complete project about React+Laravel

sayidali
Автор

Please give me proper code for (5.55) useparams error

nisargnavale
Автор

Please request provide us the proper code ur code is not working in our system

nisargnavale
Автор

Hi, I've been watching this project just now and the code to get the id from URL (this.props.match.params.id) is not applicable anymore, it is giving an error that "params" is undefined. May I know what is the alternative way to get the id from URL? Thank you.

rayvenmercado
Автор

SOLUTION for "this.props.match.params.id":
Only thing we need to extract id from url, so use this:-
async componentDidMount()
{
let rel_path = window.location.pathname //returns url relative path
let id = rel_path.slice(14) // /edit-student/ it is of size 14 character and remaining is id no
console.log(id)
}

chitranshtiwari
welcome to shbcf.ru