Components A React application usually consists of several dynamic React components combined together, where each component has a separation of concerns & child components are nested within parent components. We Declare a new class that extends React’s Component class, which provides us with built in methods & attributes. class <ComponentName> extends…