logo

eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

Unnamed repository; edit this file 'description' to name the repository. git clone https://hacktivis.me/git/mirror/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.git

e.jsx (546B)


  1. import React, { Component } from 'react';
  2. class E extends Component {
  3. constructor(props) {
  4. super(props);
  5. this.state = {
  6. e: 0,
  7. };
  8. this.timer = this.timer.bind(this);
  9. }
  10. componentDidMount() {
  11. const eId = setInterval(this.timer, 10);
  12. this.setState({ eInterval: eId });
  13. }
  14. componentWillUnmount() {
  15. clearInterval(this.state.eInterval);
  16. }
  17. timer() {
  18. this.setState({ e: this.state.e + 1 });
  19. }
  20. render() {
  21. const e = Array(this.state.e).fill(<p>e</p>);
  22. return e;
  23. }
  24. }
  25. export default E;