React is a declarative, efficient, and flexible JavaScript library for building user interfaces. It lets you compose complex UIs from small and isolated pieces of code called “components.” Think of React as building with Lego blocks, where each block is a component that can be used to construct dynamic user interfaces more easily.