JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://unpkg.com/bro-fs"></script>
<pre id="result"></pre>
JavaScript
fs.init({type: window.TEMPORARY, bytes: 5 * 1024 * 1024})
.then(() => fs.mkdir('dir'))
.then(() => fs.writeFile('dir/file.txt', 'hello world'))
.then(() => fs.readFile('dir/file.txt'))
.then(content => document.getElementById('result').textContent = `File content: "${content}"`);