Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block fanux365

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:3f4b812fbf8bacd5192c244c83f10705
#include "stdafx.h"
#include <windows.h>
#include <iostream>
#include <string>
#include <iostream>
#include <string>
#include <time.h>
#include <stdlib.h>
fanux365 / App.jsx
Created Apr 14, 2018
React.js Little clicker counter
View App.jsx
import React, { Component } from 'react';
class App extends Component {
constructor(props) {
this.state = {counter: 0};
this.setState((prevState, props) => ({
counter: prevState.counter + 1
You can’t perform that action at this time.