--

little suggestion, it's the best to have a capitalized file name for component

and always keep index.js, but the component code still separated. index.js is used to import and export only

for ex:

Button Folder

- index.js

- Button.jsx

to import from Button:

`import Button from './Button'`

not

`import Button from './Button/Button'`

--

--

Andreas Sujono
Andreas Sujono

Written by Andreas Sujono

A Full Stack Developer with 5 years of working experience, Web2 and Web3 Enthusiast, twitter: @AndreasSujono2

No responses yet