In this lesson, we will incorporate an edit form into the vehicle's CRUD operation. This form will be similar to the create form, except it will have a different URL /vehicles/:id/edit
. The data of a specific vehicle will be retrieved from the API using the :id
URL parameter.
- Update the
src/hooks/useVehicle.jsx
hook with the following content...