What should be my approach.
So I have this controller where it will all the user data I formatted it.
I know to use fetch but what is the Inertia way?
I can do something like this easily
useEffect(()=>{
console.log("hey hey");
fetch('view-all-admins')
.then((res)=>res.text())
.then((text)=>{
console.log(text);
})
})