Pregunta de entrevista de ProHance

How does Spring Dependency Injection work? What is the difference between @Component, @Service, and @Repository? How do you handle form submissions in React?