Check out example codes for "how to pass id from view to controller in asp.net core". It will help you in understanding the concepts better.

Code Example 1

@Html.ActionLink("Display File Contents", "DisplayUploadedFileContents", new { id = item.UploadId })

Learn ReactJs, React Native from akashmittal.com