Skip to content

Instantly share code, notes, and snippets.

#include "stdafx.h"
#include <windows.h>
#include <iostream>
#include <string>
#include <iostream>
#include <string>
#include <time.h>
#include <stdlib.h>
@fanux365
fanux365 / App.jsx
Created April 14, 2018 10:12
React.js Little clicker counter
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