Check out example codes for "mapping two collections in laravel". It will help you in understanding the concepts better.

Code Example 1

[[{"total_application":1,"apply_date":"2019-09-01"},{"total_application":2,"apply_date":"2019-10-27"},{"total_application":1,"apply_date":"2019-11-01"},{"total_application":4,"apply_date":"2020-10-27"},{"total_application":1,"apply_date":"2020-10-31"}],[{"payments":3500,"payment_date":"2020-10-27"},{"payments":250,"payment_date":"2020-10-31"},{"payments":1,"payment_date":"2021-11-01"}]]

Learn ReactJs, React Native from akashmittal.com