Skip to content

Instantly share code, notes, and snippets.

@arathnim
Last active August 3, 2018 20:03
Show Gist options
  • Save arathnim/d1b2306be5e10796250dfbd4fc6a58a7 to your computer and use it in GitHub Desktop.
Save arathnim/d1b2306be5e10796250dfbd4fc6a58a7 to your computer and use it in GitHub Desktop.
---
title: "Embracing the Tagged Filesystem"
date: "August 3rd, 2018"
tags: ["unix", "design", "play"]
---
<div id="tagged-fs-demo"></div>
import TagDemo from './Tag-Fs-Demo'
class Post extends React.Component {
constructor(props) {
super(props);
this.state = {data: "foo"};
fetch("/posts/" + this.props.match.params.path + ".json").then(x => x.json()).then(x => {this.setState({data: x})})
}
componentDidUpdate() {
if (document.getElementById('tagged-fs-demo')) {
render(<TagDemo />, document.getElementById('tagged-fs-demo'))
}
}
render() {
[snip]
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment