Created
March 19, 2020 01:16
-
-
Save ryanjyost/47ee7dcc2d1f4a035382365e217d68fe to your computer and use it in GitHub Desktop.
App with logs
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
//... same above | |
function App() { | |
const [loaded, setLoaded] = useState(false); | |
useEffect(() => { | |
console.log("This is a log"); | |
console.warn("This is a warning"); | |
console.error("This is an error"); | |
const secondsToWait = 1; | |
axios(`https://httpstat.us/200?sleep=${secondsToWait * 1000}`).then( | |
response => { | |
setLoaded(true); | |
} | |
); | |
}, []); | |
//... same below |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment