JSONPath filter plugins working

This commit is contained in:
Gregory Schier
2024-01-15 15:06:49 -08:00
parent 6b1d15415d
commit 1d207d5fbd
9 changed files with 434 additions and 277 deletions

View File

@@ -0,0 +1,7 @@
import { useCallback, useState } from 'react';
export function useToggle(initialValue = false) {
const [value, setValue] = useState<boolean>(initialValue);
const toggle = useCallback(() => setValue((v) => !v), []);
return [value, toggle] as const;
}