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
'use strict'; | |
function createAdderJob(val) { | |
return function adder(g) { | |
g.entry = g.entry.map(src => src + val); | |
return g; | |
} | |
} | |
module.exports = createAdderJob; |
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
'use strict'; | |
import React from 'react'; | |
class BaseComponent extends React.Component { | |
componentDidMount() { | |
// ref error will be given, | |
// this.refs.root === <div> | |
// this.refs.subrender === null | |
console.log(this.refs); |
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
function hello(callback) { | |
callback('World') | |
} | |
hello(function(str) { | |
console.log('Hello', str); | |
}) |
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 logo from './logo.svg'; | |
import './App.css'; | |
const data = [ | |
{ title: 'Hello World', content: 'Hello 1234', writer: 'JESSE'}, | |
{ title: 'Hello World1', content: 'Hello 1asdf234'}, | |
{ title: 'Hello World2', content: 'Helasdflo 1234'}, | |
{ title: 'Hello World3', content: 'Heladsflo 1234'}, | |
{ title: 'Hello World4', content: 'Helasdblo 1234'}, |