97 likes
·
43.1K reads
7 comments
·Feb 7, 2022
Feb 7, 2022
Great Article Anurag! Will use this method
3
·
·Feb 7, 2022
Feb 7, 2022
gg's
3
·
·Feb 7, 2022
Feb 7, 2022
Great! Have you tried implementing atomic design for component folders?
3
·
·Feb 8, 2022
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
·
·Mar 1, 2022
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
·Apr 9, 2022
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.
·
·Oct 6, 2022
Oct 6, 2022
Very helpful, thank you Anurag.
I would like to know how to structure the styles files?
·