This file contains hidden or 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
// functions | |
// explain the difference between these two functions in regards to what they would output in a stack trace. | |
const Foo = () => { console.log('bar') } | |
function Foo() { | |
console.log('bar') | |
} | |
// explain what a setTimeout does, what is the difference between these two | |
window.setTimout(() => console.log('bar'), 5000) |
This file contains hidden or 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 PropTypes from 'prop-types' | |
import Baz from 'baz' | |
class Foo extends Component { | |
static propTypes = { | |
list: PropTypes.array, | |
} | |
static defaultProps = { |