better repl init + a bit of ssr for main repl

This commit is contained in:
Felix Roos 2023-12-29 00:55:14 +01:00
parent b0bdd09032
commit 9974311344
6 changed files with 44 additions and 46 deletions

View file

@ -0,0 +1,9 @@
import { useEffect, useState } from 'react';
export default function useClient() {
const [client, setClient] = useState(false);
useEffect(() => {
setClient(true);
}, []);
return client;
}