better repl init + a bit of ssr for main repl
This commit is contained in:
parent
b0bdd09032
commit
9974311344
6 changed files with 44 additions and 46 deletions
9
website/src/useClient.mjs
Normal file
9
website/src/useClient.mjs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import { useEffect, useState } from 'react';
|
||||
|
||||
export default function useClient() {
|
||||
const [client, setClient] = useState(false);
|
||||
useEffect(() => {
|
||||
setClient(true);
|
||||
}, []);
|
||||
return client;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue