Why in JS,
React handles importing like this
import SomeThing from '../../components/SomeComponent/SomeThing';
while
Node handles importing like this
const someThing = require('../someWhere/someThing');
Is it purely a convention?
If so, are they exchangeable?
If not, why is it important to be done so?
Is there any difference between them behind the scene, e.g. performance?
importis ES6 and is not supported in node (yet) without additional workaround. How can I use an es6 import in node?