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
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 (