logo

eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

Unnamed repository; edit this file 'description' to name the repository.
commit: b649f43f7fcd982d3f81aa3ebd347137e6ae3fd0
parent 22a894247607eaa3f1e2810bc585decf1b44521d
Author: LinuxMercedes <LinuxMercedes@gmail.com>
Date:   Tue, 11 Dec 2018 14:20:47 -0600

Merge pull request #576 from stepanvanzuriak/patch-1

Reeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeact JSX 

Diffstat:

Ae.jsx33+++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+), 0 deletions(-)

diff --git a/e.jsx b/e.jsx @@ -0,0 +1,33 @@ +import React, { Component } from 'react'; + +class E extends Component { + constructor(props) { + super(props); + + this.state = { + e: 0, + }; + + this.timer = this.timer.bind(this); + } + + componentDidMount() { + const eId = setInterval(this.timer, 10); + this.setState({ eInterval: eId }); + } + + componentWillUnmount() { + clearInterval(this.state.eInterval); + } + + timer() { + this.setState({ e: this.state.e + 1 }); + } + + render() { + const e = Array(this.state.e).fill(<p>e</p>); + return e; + } +} + +export default E;