/* * Copyright (c) Facebook, Inc. and its affiliates. */ import {createContext, useState, useContext, Suspense} from 'react'; import ButtonLink from '../ButtonLink'; import {IconRestart} from '../Icon/IconRestart'; import {Logo} from 'components/Logo'; import Link from 'components/MDX/Link'; import CodeBlock from 'components/MDX/CodeBlock'; import cn from 'classnames'; export function HomeContent() { return ( <>
The library for web and native user interfaces
React lets you build user interfaces out of individual pieces called components. Create your own React components like a button, a panel, or an avatar. Then combine them into entire screens, pages, and apps.
Whether you work on your own or with thousands of other developers, using React feels the same. It is designed to let you seamlessly combine components written by independent people, teams, and organizations.
React components are JavaScript functions. Want to show
something conditionally? Use an if statement.
Need to display a list? Use a for loop or array{' '}
map(). Learning React is learning programming.
This markup syntax is called JSX. It is a JavaScript syntax extension popularized by React. Putting JSX markup close to related rendering logic makes React components easy to create, maintain, and delete.
React is a library. It lets you put components together, but it doesn’t prescribe solutions for routing and data fetching. To get the most out of React, we recommend a React framework like{' '} Next.js,{' '} Remix, and{' '} Expo. Frameworks let you create full-stack apps with very little configuration.
To frameworks, React is more than a library—React is an architecture. React provides a unified programming model that spans across client and server so that you can use both of them for what they are best at.
Web users expect pages to load fast. React can render into an HTML stream on the server, gradually revealing more content even before React itself has loaded on the client. React relies on modern web standards to keep the page responsive even during rendering.
Mobile app users expect native look-and-feel. With{' '} React Native, you can create Android and iOS apps with React. These user interfaces can feel truly native because they are truly native. Your React components render real Android and iOS views natively provided by the platform.
Many teams build their entire user interface with React. For example, the web experiences of Facebook, Instagram, TikTok, Twitter, Airbnb, Spotify, Trello, and The New York Times {' '} are fully powered by React.
React approaches changes with care. Every React commit is
tested on business-critical surfaces with hundreds of millions
of users. When an API is deprecated, we add warnings and
publish automatic scripts to assist with the migration. The
100,000 React components in the Meta codebase help validate
every migration strategy. The React team is also always
researching how to improve React. React has a high bar for
taking an idea from research to production. Only proven
approaches become part of React.
Learn about our latest research
Q1 2022
Lorem ipsum dolor
Q4 2020
Lorem ipsum dolor
Q4 2020
Lorem ipsum dolor
Q1 2019
Lorem ipsum dolor
Q4 2017
Lorem ipsum dolor
React approaches changes with care. Every React commit is tested on business-critical surfaces with hundreds of millions of users.
Many teams build their entire user interface with React.
React approaches changes with care. Every React commit is tested on business-critical surfaces with hundreds of millions of users.
React is a library. It lets you create components and put them together, but it doesn't prescribe solutions for routing and data fetching.
Get started today.
Get started today.
{comment.text}