Open/Closed Principle: Writing Scalable Code in React