1
0
Fork 0
mirror of https://github.com/docker/awesome-compose.git synced 2025-04-26 10:43:35 +02:00

fix security issues on react-rust-postgres sample

Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
This commit is contained in:
Guillaume Lours 2022-03-12 19:45:38 +01:00
parent 111f54d96f
commit 6f66b4a526
No known key found for this signature in database
3 changed files with 8225 additions and 10417 deletions

View file

@ -7,7 +7,7 @@ function App() {
useEffect(() => {
fetch("/api/users")
.then((res) => res.json())
.then((res) => setMessage(res.message))
.then((res) => setMessage(`Hello with ${res.length} users`))
.catch(console.error);
}, [setMessage]);
return (