I\'m learning node.js and am wondering why it uses the require syntax rather than the import syntax which React uses.
i.e.
const
I believed import is es6 but I don't think that explains why it's not used in node.
Just like the way NodeJS implements their entire library which tons of asynchronous functions which only support callback-based approach. Thinking this way and you'll realize that, sooner or later, the NodeJS framework will definitely support the import syntax and upgrade all of those asynchronous functions to support promise-based.