What is React?
Options
- A database that is used for web applications
- A JavaScript library to build UIs from components (Correct option)
- An operating system that runs on web servers
- A testing tool that is used for Java projects
Answer
A JavaScript library for building user interfaces from reusable components
Why
React's own website calls it 'the library for web and native user interfaces'.
You build a page from components: pieces of UI with their own logic and appearance. A component can be as small as a button or as large as a whole page.
React components are JavaScript functions that return markup written in JSX, a syntax that looks like HTML.
Remember
React = components for building UIs.