React hooks for working with the File System API.
Get all file handles within the origin private file system (OPFS), including the root directory handle:
import { useFileSystem } from "@criteria/file-system-react";
function Component() {
const handlesByPath = useFileSystem();
return (
<ul>
{handlesByPath.map((handle, path) => (
<li key={path}>{path}</li>
))}
<ul>
);
}