I m so confused with this. In react application we use import keyword to import something...
but in express.js we use require keyword? why is that? please explain !
Generally because React apps use Babel + Webpack to enable import functionality, and not all Express/server-side apps do the same. There's no reason they can't, though.
importfunctionality, and not all Express/server-side apps do the same. There's no reason they can't, though.importjust fine.