• NA
  • 51
  • 0

How to fetch web api using react.js component? Urgent

Aug 4 2021 5:54 PM


I am new to core and react.js. This is my first component. Please help. Please find my code in zip file. Please do the modification in code. I used core react project. I added a API Controller class with read/write actions.  I am trying to display the logged in username on webpage. Please help me how to call controller get method from react.js component and display it on webpage.

Also, controller web api should return json or string.....



Answers (5)