How to Apply SOLID Principles in React