neue Homepage auf react basis

This commit is contained in:
2026-08-07 21:39:30 +02:00
parent 164bdd19ad
commit ee89442c04
52191 changed files with 1230242 additions and 58 deletions
+14
View File
@@ -0,0 +1,14 @@
'use client';
import * as React from 'react';
import { EMPTY_ARRAY } from "./empty.mjs";
/**
* A React.useEffect equivalent that runs once, when the component is mounted.
*/
export function useOnMount(fn) {
// TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- no need to put `fn` in the dependency array
/* eslint-disable react-hooks/exhaustive-deps */
React.useEffect(fn, EMPTY_ARRAY);
/* eslint-enable react-hooks/exhaustive-deps */
}