Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

169
Views
export {default} from "./Button" in VS Code in index.js file

I have noticed that some file structures follow the pattern like:

/component
-Button

  • index.js
  • Button.js
  • button.module.css

Normally what I see is the following:

in Button.js

const Button = () => {...} 
export default Button

in index.js

export {default} from './Button'

Why that export in index.js looks like a named export. My Button component was exported as a default.

Is VS code doing and auto import where my component goes from default export to named export? Or is this a React thing? ES6?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!