RSRobince Studio

React Introduction

React is a JavaScript library for building user interfaces out of components — reusable pieces of UI. You describe what the screen should look like, and React keeps it up to date as your data changes.

A component is a function that returns JSX, which looks like HTML inside JavaScript. This editor compiles your JSX and renders it live — press Run:

function App() {
  return <h1>Hello from React!</h1>
}

ReactDOM.createRoot(document.getElementById("root")).render(<App />)
Try it yourself

Loading editor…