I've just start an express project and want to use ES6 for both server and client. Currently I'm using a mixed style of require
and import
.
Should I use import
over require
in es6 project? Will import
replace require
in the future? If I want to use import
and export
in pure es6 way, which export
syntax should I use?