basic
module.exports = {
foo: 'hello'
};
// 等同于
export default {
foo: 'hello'
};function thunkedYell (text) { return function thunk () { console.log(text + '!') } }const thunkedYell = text => () => console.log(text + '!') // or thunkedYell = text => () => console.log(text + '!')
Last updated