Every React component should serve only one purpose. If it ends up growing, it should be decomposed into smaller subcomponents. I do not write a single test for my React components. I just create a pure function with all the logic, save it in a file and just use it in my components.

3m read timeFrom dev.to
Post cover image
Table of contents
Always write React components that you can read without scrolling.Thinking in ReactLet's see some codeFinal thoughts
2 Comments

Sort: