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
/* | |
Sample Data | |
----------- | |
movie | |
------------------------------------------------ | |
id title yr director budget gross | |
actor | |
----------- | |
id name |
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 App from './App'; | |
import React from 'react'; | |
import { configure, shallow } from 'enzyme'; | |
import Adapter from 'enzyme-adapter-react-16'; | |
configure({ adapter: new Adapter() }); | |
describe('App', () => { | |
it('should have the `th` "Todos"', () => { | |
const wrapper = shallow( |
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'; | |
class App extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
todos: [], | |
todo: '', | |
} |
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
const ul = document.getElementById('users'); | |
const url = 'https://jsonplaceholder.typicode.com'; | |
// Create the type of element you pass in the parameters | |
function createNode(element) { | |
return document.createElement(element); | |
} | |
// Append the second parameter(element) to the first one | |
function append(parent, el) { |
NewerOlder