(no title)
gabemart | 8 years ago
I used to do this, but I find it really confusing having dozens of files all called "index.jsx". I eventually moved to './ComponentName/ComponentName.jsx' in my personal projects. It's a bit more verbose, but I find it makes everything else do to with navigating and finding files easier.
lewisl9029|8 years ago
You can still import it as `./ComponentName` as you would with having `index.jsx` inside the folder. Best of both worlds, IMO.
ng12|8 years ago