fix(guide): simplify directory structure

This commit is contained in:
Mrugesh Mohapatra
2018-10-16 21:26:13 +05:30
parent f989c28c52
commit da0df12ab7
35752 changed files with 0 additions and 317652 deletions

View File

@ -0,0 +1,21 @@
---
title: Import a Default Export
---
## Import a Default Export
<!-- The article goes here, in GitHub-flavored Markdown. Feel free to add YouTube videos, images, and CodePen/JSBin embeds -->
Importing an export default is almost the same as importing a normal export; you just don't need the curly braces to define the name of what you're importing from the file!
## Hint 1:
Fill in the blanks: `import _ from "file-name"`. Plug in your module's name (which is `subtract`) into `_`, and put `"math-functions"` into `"file-name"`.
## Spoiler Alert - Solution Ahead!
## Solution:
```javascript
"use strict";
import subtract from "math_functions";
subtract(7,4);
```