I\'m learning node.js and am wondering why it uses the require syntax rather than the import syntax which React uses.
require
import
i.e.
const
Probably for historical reasons. node.js and chrome (v8 engine) are older than ES6 standard.
On the other hand, see: How can I use an es6 import in node?
You may use import, too.