Created
December 29, 2022 01:27
-
-
Save DoctorDerek/29f2b2ddfee77509f9759e85b6158256 to your computer and use it in GitHub Desktop.
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
// Named exports in JavaScript and TypeScript | |
function Banana() { | |
return <div>🍌</div> | |
} | |
const price = 1.33 | |
export { Banana, price } | |
// These are equivalent to the export syntax above: | |
export function Banana() { | |
return <div>🍌</div> | |
} | |
export const price = 1.33 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment