CVS Health interview question

Explain how would you go with designing Microservices ? Questions on React difference between useState vs useEffect?