Practical rules for maintainable React code?
Answer
•Keep components small and responsible for one thing.
•Keep state close to where it is used.
•Separate server-state and UI-state.
•Write tests for critical scenarios.
•Optimize based on profiling, not feelings.
Was this answer helpful?