Answer the question
In order to leave comments, you need to log in
ES6 export default (app)=>{} - returns an object. How to return a function?
Hello. Dealing with a training example, I ran into an already known problem.
module.export = app => { ... }
import foo from 'module' //foo = function(app)
export default app => { ... }
import foo from 'module' //foo = { default : function (app)}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question