Majid Abbasi’s Post

⚡ JavaScript & TypeScript Daily Refresher #62 👉 When do you use export default and when export in TypeScript? 💡 Use export for named exports when a file contains multiple items. Use export default for a single main value — like React components or utility modules with one primary function. ✨ I post daily JS/TS refreshers — follow for the next one! #JavaScript #TypeScript #React #WebDevelopment

To view or add a comment, sign in

Explore content categories