Created
December 7, 2015 04:05
-
-
Save rajikaimal/d31f4569aa41a0749b1c to your computer and use it in GitHub Desktop.
ES6 import
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //es5 with require | |
| var express = require('express'); | |
| var app = express(); | |
| //es6 import | |
| import express from 'express'; | |
| //then express is available as a variable | |
| var app = express(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment