Remove demo.js

This commit is contained in:
Jeronimo Vallelunga 2017-07-14 19:49:41 -03:00
parent 7afd02be57
commit fba2086da1
1 changed files with 0 additions and 34 deletions

View File

@ -1,34 +0,0 @@
const { h, mount, Component, Text } = require('ink');
class Counter extends Component {
constructor() {
super();
this.state = {
i: 0
};
}
render() {
return h(
Text,
{ green: true },
this.state.i,
' tests passed'
);
}
componentDidMount() {
this.timer = setInterval(() => {
this.setState({
i: this.state.i + 1
});
}, 100);
}
componentWillUnmount() {
clearInterval(this.timer);
}
}
mount(h(Counter, null), process.stdout);