-
-
Save natew/271fd1623117b45d7204 to your computer and use it in GitHub Desktop.
import / export
This file contains 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
import fns from './a' | |
view One { | |
var a = fns.aa() | |
} | |
view Two { | |
var b = fns.bb() | |
} |
This file contains 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
export function aa() { | |
} | |
export function bb() { | |
} | |
// optional, lets you do import { aa, bb } from './b' | |
export default { aa, bb } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment