View gist:3f4b812fbf8bacd5192c244c83f10705
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
#include "stdafx.h" | |
#include <windows.h> | |
#include <iostream> | |
#include <string> | |
#include <iostream> | |
#include <string> | |
#include <time.h> | |
#include <stdlib.h> |
View App.jsx
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 React, { Component } from 'react'; | |
class App extends Component { | |
constructor(props) { | |
super(props); | |
this.state = {counter: 0}; | |
} | |
CenterButtonClickEvent(e){ | |
this.setState((prevState, props) => ({ | |
counter: prevState.counter + 1 |