React Code Completion Medium +20 XP
Default Export
Complete the default export of a component.
ReactFill in the blank
function App() { return <div>Hello</div>; }
export ___ App;Type the missing code
Show answer and explanation
Answer: default
export default sets the default export for a module. It's imported without curly braces: import App from './App'.
Hint: What keyword makes it the default export?
What this challenge tests
Code Completion in React: modules, exports.