Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/bbachi/react-dotnet-example
/ getAllUsers
Function
getAllUsers
ClientApp/src/services/UserService.js:1–5 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
1
export
async
function
getAllUsers() {
2
3
const
response =
await
fetch(
'/api/users'
);
4
return
await
response.json();
5
}
6
7
export
async
function
createUser(data) {
8
const
response =
await
fetch(`/api/user`, {
Callers
1
App
Class · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected