---
title: "Comment by Khoi Le on \"How I structure my Next JS Projects\" | Hashnode"
description: "Don&#39;t use this - components / index.js export * from &quot;./Header.jsx&quot; ; export * from &quot;./Hero.jsx&quot; ; export * from &quot;./Footer&quot; ;"
url: "https://hashnode.com/posts/how-i-structure-my-next-js-projects/6200c03f295d276006775ce8/comment/621dc56ec90eb90683f66a9f"
---

[Discussion](https://hashnode.com/posts/how-i-structure-my-next-js-projects/6200c03f295d276006775ce8)

Comment [How I structure my Next JS Projects](https://hashnode.com/posts/how-i-structure-my-next-js-projects/6200c03f295d276006775ce8)

[Khoi Le](https://hashnode.com/@vjcspy)

[Mar 1, 2022](https://hashnode.com/posts/how-i-structure-my-next-js-projects/6200c03f295d276006775ce8/comment/621dc56ec90eb90683f66a9f)

Don't use this

```
- components/index.js

export * from "./Header.jsx";
export * from "./Hero.jsx";
export * from "./Footer";
```

It will increase size when bundle source. You should use lazy load for components

[Veeresh Raavipaati](https://hashnode.com/@Veeresh)

[Apr 9, 2022](https://hashnode.com/posts/how-i-structure-my-next-js-projects/6200c03f295d276006775ce8/comment/621dc56ec90eb90683f66a9f#reply-62518cda75dccb6f3431e0cb)

I guess next js wont bundle the whole file right? It just builds what it needs right?

I am not sure, please correct me.
