Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

export default arrow function

// You can only export anonymous functions directly
export default () => console.log("Hello World.");

// If you want named exports, you have to export it seperately
const App = () => console.log("This is an app.");
export default App;
 
PREVIOUS NEXT
Tagged: #export #default #arrow #function
ADD COMMENT
Topic
Name
3+2 =