refactor code to unify the format of ajax request
AdityaSrivast opened this issue · comments
Current Behaviour: Currently, in the project, there are multiple ways being followed to perform ajax request to the server. For eg., Dashboard.jsx
uses fetch
, ViewData.jsx
uses vanilla JS' XMLHttpRequest()
.
Expected: One format should be followed throughout the project.
Remarks: I am working on it.
@orionpax00 @sumedhe @suleka96 mentors need your suggestions regarding this. I think axios
or fetch
would be better alternatives.
I have changed the format to fetch in ViewData.jsx you can do the rest:)