Last active
August 3, 2018 20:03
-
-
Save arathnim/d1b2306be5e10796250dfbd4fc6a58a7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "Embracing the Tagged Filesystem" | |
date: "August 3rd, 2018" | |
tags: ["unix", "design", "play"] | |
--- | |
<div id="tagged-fs-demo"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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