Created
July 28, 2017 21:50
-
-
Save pmqa/16df7be6ccecfa93b6a85ce7ce60ea82 to your computer and use it in GitHub Desktop.
React.js testing gist
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'; | |
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