React is a javascript library for creating interactive user interfaces(UI).React uses a declarative style of programming…