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.
Table of contents
Always write React components that you can read without scrolling.Thinking in ReactLet's see some codeFinal thoughts2 Comments
Sort: