Created
March 31, 2019 03:48
-
-
Save pinguxx/7fd77d62199bb795c76573eb88b0c07b 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
import HyperHTMLElement from 'hyperhtml-element/esm'; | |
const {hyper, Component} = HyperHTMLElement; | |
class Compare extends Component { | |
get defaultState() { | |
return { | |
coin: "" | |
} | |
} | |
update(state) { | |
return this.setState({path: state.path}); | |
} | |
render() { | |
return this.html` | |
<p>Compare</p> | |
<p><a href="/info">Info</a></p> | |
`; | |
} | |
} | |
export default Compare; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment