Sign in
Log inSign up
Anurag

97 likes

·

43.1K reads

7 comments

Posandu Mapa
Posandu Mapa
Feb 7, 2022

Great Article Anurag! Will use this method

3
·
Karthik Pariti
Karthik Pariti
Feb 7, 2022

gg's

3
·
Pedro Cruz
Pedro Cruz
Feb 7, 2022

Great! Have you tried implementing atomic design for component folders?

3
·
Joseph Chotard
Joseph Chotard
Feb 8, 2022

I would include a screens folder to split up your pages into multiple parts like Hero, CTA, etc.

This allows the page files to delegate while keeping the component library free of components that might only ever be used in one page.

2
·
Khoi Le
Khoi Le
Mar 1, 2022

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

·
·1 reply
Veeresh Raavipaati
Veeresh Raavipaati
Apr 9, 2022

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

I am not sure, please correct me.

·
Yousef Medhat
Yousef Medhat
Oct 6, 2022

Very helpful, thank you Anurag.
I would like to know how to structure the styles files?

·