starter.dev-github-showcases icon indicating copy to clipboard operation
starter.dev-github-showcases copied to clipboard

[CRA - RxJS - SC] Improve files order inside them

Open Atrophius opened this issue 3 years ago • 0 comments

A files most import export, whether that is a component, a class or a function, should probably be at the top of the file as soon as you open it, with any supporting sub-components.

For example, components like src/routes/sign-in.tsx should have the main component, SignIn be at the top of the file, front and center for anyone looking, while the supporting components, like the styled components in this example, are at the bottom of the file.

Atrophius avatar Sep 12 '22 15:09 Atrophius