React is the library for web and native user interfaces. Build user interfaces out of individual pieces called components written in JavaScript. React apps are made out of components. A component is a piece of the UI (user interface) that has its own logic and appearance. A component can be as small as a button, or as large as an entire page.
React components are JavaScript functions that return markup:
function MyButton() { return ( I'm a button ); }