Skip to content

Instantly share code, notes, and snippets.

@pmqa
Created July 28, 2017 21:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmqa/16df7be6ccecfa93b6a85ce7ce60ea82 to your computer and use it in GitHub Desktop.
Save pmqa/16df7be6ccecfa93b6a85ce7ce60ea82 to your computer and use it in GitHub Desktop.
React.js testing gist
import React, { Component } from 'react';
import ReactDOM from "react-dom";
class App extends Component {
constructor() {
super();
this.state = {
loading: true
};
}
componentDidMount() {
this.fetchData();
}
render() { }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment