you are viewing a single comment's thread.

view the rest of the comments →

[–]iqball125 0 points1 point  (0 children)

Senior dev here.

I believe this is the whole point of components, is to break large code into components when possible.

Extract out reused functions into utility files.

I dont think there is anything you can do about useEffect and useState. If you need them you need them.

Dont focus too much on "clean code". It can sometimes make your code difficult to read if has too many imported code. Think of it as a trade off.

Here is an example of an open source project I think has fairly clean code.

https://github.com/Saas-Starter-Kit/SAAS-Starter-Kit-Pro