Skip to content

criteria-labs/file-system-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@criteria/file-system-react

React hooks for working with the File System API.

Getting Started

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>
  );
}

About

React hooks for working with the File System API.

Resources

License

Stars

Watchers

Forks

Packages

No packages published