SyntaxStudy
Sign Up
React Beginner 8 min read

What is React?

React is a JavaScript library for building user interfaces, created by Meta (Facebook) in 2013. It uses a component-based architecture and a virtual DOM to efficiently update the UI.

React focuses only on the view layer, making it flexible and easy to integrate with other libraries. It is one of the most popular front-end tools in the world.

Example
// React runs in the browser or via a bundler like Vite
// Create a new app:
npm create vite@latest my-app -- --template react
cd my-app
npm install
npm run dev

// Your first React component (src/App.jsx)
function App() {
  return (
    <div>
      <h1>Hello, React!</h1>
      <p>Welcome to my first React app.</p>
    </div>
  );
}

export default App;