Wiring it all up
Course: PayTM project - chapter 21
You can use
- fetch or
- axios to wire up calls to the backend server.
The final code looks something like this -
https://github.com/100xdevs-cohort-2/paytm/tree/complete-solution (complete-solution branch on the repo)
The important bits here are -
- Signup call - https://github.com/100xdevs-cohort-2/paytm/blob/complete-solution/frontend/src/pages/Signup.jsx#L36
- Call to get all the users given the filter - https://github.com/100xdevs-cohort-2/paytm/blob/complete-solution/frontend/src/components/Users.jsx#L13
- Call to transfer money b/w accounts - https://github.com/100xdevs-cohort-2/paytm/blob/complete-solution/frontend/src/pages/SendMoney.jsx#L45