/*
* Copyright (c) Facebook, Inc. and its affiliates.
*/
import {
createContext,
memo,
useState,
useContext,
useId,
Suspense,
useEffect,
useRef,
useTransition,
} from 'react';
import cn from 'classnames';
import NextLink from 'next/link';
import ButtonLink from '../ButtonLink';
import {IconRestart} from '../Icon/IconRestart';
import BlogCard from 'components/MDX/BlogCard';
import {IconChevron} from 'components/Icon/IconChevron';
import {IconSearch} from 'components/Icon/IconSearch';
import {Logo} from 'components/Logo';
import Link from 'components/MDX/Link';
import CodeBlock from 'components/MDX/CodeBlock';
import {ExternalLink} from 'components/ExternalLink';
import sidebarBlog from '../../sidebarBlog.json';
import * as React from 'react';
import Image from 'next/image';
function Section({children, background = null}) {
return (
);
}
function Header({children}) {
return (
{children}
);
}
function Para({children}) {
return (
{children}
);
}
function Center({children}) {
return (
{children}
);
}
function FullBleed({children}) {
return (
{children}
);
}
function CurrentTime() {
const [date, setDate] = useState(new Date());
const currentTime = date.toLocaleTimeString([], {
hour: 'numeric',
minute: 'numeric',
});
useEffect(() => {
const msPerMinute = 60 * 1000;
let nextMinute = Math.floor(+date / msPerMinute + 1) * msPerMinute;
const timeout = setTimeout(() => {
if (Date.now() > nextMinute) {
setDate(new Date());
}
}, nextMinute - Date.now());
return () => clearTimeout(timeout);
}, [date]);
return {currentTime} ;
}
const blogSidebar = sidebarBlog.routes[1];
if (blogSidebar.path !== '/blog') {
throw Error('Could not find the blog route in sidebarBlog.json');
}
const recentPosts = blogSidebar.routes.slice(0, 4).map((entry) => ({
title: entry.titleForHomepage,
icon: entry.icon,
date: entry.date,
url: entry.path,
}));
export function HomeContent() {
return (
<>
React
The library for web and native user interfaces
Learn React
API Reference
Create user interfaces from components
React lets you build user interfaces out of individual pieces
called components. Create your own React components like{' '}
Thumbnail, LikeButton, and{' '}
Video. 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.
Write components with code and markup
React components are JavaScript functions. Want to show some
content conditionally? Use an if statement.
Displaying a list? Try 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.
Add interactivity wherever you need it
React components receive data and return what should appear on the
screen. You can pass them new data in response to an interaction,
like when the user types into an input. React will then update the
screen to match the new data.
You don’t have to build your whole page in React. Add React to
your existing HTML page, and render interactive React components
anywhere on it.
Add React to your page
Go full-stack
with a framework
React is a library. It lets you put components together, but it
doesn’t prescribe how to do routing and data fetching. To build an
entire app with React, we recommend a full-stack React framework
like Next.js or{' '}
Remix.
React is also an architecture. Frameworks that implement it let
you fetch data in asynchronous components that run on the server
or even during the build. Read data from a file or a database, and
pass it down to your interactive components.
Get started with a framework
Use the best from every platform
People love web and native apps for different reasons. React
lets you build both web apps and native apps using the same
skills. It leans upon each platform’s unique strengths to let
your interfaces feel just right on every platform.
Stay true to the web
People expect web app pages to load fast. On the server,
React lets you start streaming HTML while you’re still
fetching data, progressively filling in the remaining
content before any JavaScript code loads. On the client,
React can use standard web APIs to keep your UI
responsive even in the middle of rendering.
Go truly native
People expect native apps to look and feel like their
platform.{' '}
React Native
{' '}
and{' '}
Expo{' '}
let you build apps in React for Android, iOS, and
more. They look and feel native because their UIs{' '}
are truly native. It’s not a web view—your
React components render real Android and iOS views
provided by the platform.
With React, you can be a web and a native developer. Your
team can ship to many platforms without sacrificing the user
experience. Your organization can bridge the platform silos, and
form teams that own entire features end-to-end.
Build for native platforms
Upgrade when the future is ready
React approaches changes with care. Every React commit is
tested on business-critical surfaces with over a billion
users. Over 100,000 React components at Meta help validate
every migration strategy.
The React team is always researching how to improve React.
Some research takes years to pay off. React has a high bar
for taking a research idea into production. Only proven
approaches become a part of React.
Read more React news
Latest React News
Read more React news
Join a community
of millions
You’re not alone. Two million developers from all over the
world visit the React docs every month. React is something
that people and teams can agree on.
This is why React is more than a library, an architecture, or
even an ecosystem. React is a community. It’s a place where
you can ask for help, find opportunities, and meet new
friends. You will meet both developers and designers,
beginners and experts, researchers and artists, teachers and
students. Our backgrounds may be very different, but React
lets us all create user interfaces together.
Welcome to the
React community
Get Started
>
);
}
function CTA({children, icon, href}) {
let Tag;
let extraProps;
if (href.startsWith('https://')) {
Tag = ExternalLink;
} else {
Tag = NextLink;
extraProps = {legacyBehavior: false};
}
return (
{icon === 'native' && (
)}
{icon === 'framework' && (
)}
{icon === 'code' && (
)}
{icon === 'news' && (
)}
{children}
);
}
const reactConf2021Cover = '/images/home/conf2021/cover.svg';
const reactConf2019Cover = '/images/home/conf2019/cover.svg';
const communityImages = [
{
src: '/images/home/community/react_conf_fun.webp',
alt: 'People singing karaoke at React Conf',
},
{
src: '/images/home/community/react_india_sunil.webp',
alt: 'Sunil Pai speaking at React India',
},
{
src: '/images/home/community/react_conf_hallway.webp',
alt: 'A hallway conversation between two people at React Conf',
},
{
src: '/images/home/community/react_india_hallway.webp',
alt: 'A hallway conversation at React India',
},
{
src: '/images/home/community/react_conf_elizabet.webp',
alt: 'Elizabet Oliveira speaking at React Conf',
},
{
src: '/images/home/community/react_india_selfie.webp',
alt: 'People taking a group selfie at React India',
},
{
src: '/images/home/community/react_conf_nat.webp',
alt: 'Nat Alison speaking at React Conf',
},
{
src: '/images/home/community/react_india_team.webp',
alt: 'Organizers greeting attendees at React India',
},
];
function CommunityGallery() {
const ref = useRef();
const [shouldPlay, setShouldPlay] = useState(false);
useEffect(() => {
const observer = new IntersectionObserver(
(entries) => {
entries.forEach((entry) => {
setShouldPlay(entry.isIntersecting);
});
},
{
root: null,
rootMargin: `${window.innerHeight}px 0px`,
}
);
observer.observe(ref.current);
return () => observer.disconnect();
}, []);
const [isLazy, setIsLazy] = useState(true);
// Either wait until we're scrolling close...
useEffect(() => {
if (!isLazy) {
return;
}
const rootVertical = parseInt(window.innerHeight * 2.5);
const observer = new IntersectionObserver(
(entries) => {
entries.forEach((entry) => {
if (entry.isIntersecting) {
setIsLazy(false);
}
});
},
{
root: null,
rootMargin: `${rootVertical}px 0px`,
}
);
observer.observe(ref.current);
return () => observer.disconnect();
}, [isLazy]);
// ... or until it's been a while after hydration.
useEffect(() => {
const timeout = setTimeout(() => {
setIsLazy(false);
}, 20 * 1000);
return () => clearTimeout(timeout);
}, []);
return (
);
}
const CommunityImages = memo(function CommunityImages({isLazy}) {
return (
<>
{communityImages.map(({src, alt}, i) => (
))}
>
);
});
function ExampleLayout({
filename,
left,
right,
activeArea,
hoverTopOffset = 0,
}) {
const contentRef = useRef(null);
useNestedScrollLock(contentRef);
const [overlayStyles, setOverlayStyles] = useState([]);
useEffect(() => {
if (activeArea) {
const nodes = contentRef.current.querySelectorAll(
'[data-hover="' + activeArea.name + '"]'
);
const nextOverlayStyles = Array.from(nodes)
.map((node) => {
const parentRect = contentRef.current.getBoundingClientRect();
const nodeRect = node.getBoundingClientRect();
let top = Math.round(nodeRect.top - parentRect.top) - 8;
let bottom = Math.round(nodeRect.bottom - parentRect.top) + 8;
let left = Math.round(nodeRect.left - parentRect.left) - 8;
let right = Math.round(nodeRect.right - parentRect.left) + 8;
top = Math.max(top, hoverTopOffset);
bottom = Math.min(bottom, parentRect.height - 12);
if (top >= bottom) {
return null;
}
return {
width: right - left + 'px',
height: bottom - top + 'px',
transform: `translate(${left}px, ${top}px)`,
};
})
.filter((s) => s !== null);
setOverlayStyles(nextOverlayStyles);
}
}, [activeArea, hoverTopOffset]);
return (
{right}
{overlayStyles.map((styles, i) => (
))}
);
}
function useCodeHover(areas) {
const [hoverLine, setHoverLine] = useState(null);
const area = areas.get(hoverLine);
let meta;
if (area) {
const highlightLines = area.lines ?? [hoverLine];
meta = '```js {' + highlightLines.map((l) => l + 1).join(',') + '}';
}
return [area, meta, setHoverLine];
}
const example1Areas = new Map([
[2, {name: 'Video'}],
[3, {name: 'Thumbnail'}],
[4, {name: 'a'}],
[5, {name: 'h3'}],
[6, {name: 'p'}],
[7, {name: 'a'}],
[8, {name: 'LikeButton'}],
[9, {name: 'Video'}],
]);
function Example1() {
const [area, meta, onLineHover] = useCodeHover(example1Areas);
return (
{`function Video({ video }) {
return (
);
}
`}
}
right={
}
/>
);
}
const example2Areas = new Map([
[8, {name: 'VideoList'}],
[9, {name: 'h2'}],
[11, {name: 'Video', lines: [11]}],
[13, {name: 'VideoList'}],
]);
function Example2() {
const [area, meta, onLineHover] = useCodeHover(example2Areas);
const videos = [
{
id: 'ex2-0',
title: 'First video',
description: 'Video description',
image: 'blue',
},
{
id: 'ex2-1',
title: 'Second video',
description: 'Video description',
image: 'red',
},
{
id: 'ex2-2',
title: 'Third video',
description: 'Video description',
image: 'green',
},
];
return (
{`function VideoList({ videos, emptyHeading }) {
const count = videos.length;
let heading = emptyHeading;
if (count > 0) {
const noun = count > 1 ? 'Videos' : 'Video';
heading = count + ' ' + noun;
}
return (
{heading}
{videos.map(video =>
)}
);
}`}
}
right={
}
/>
);
}
const example3Areas = new Map([
[6, {name: 'SearchableVideoList'}],
[7, {name: 'SearchInput', lines: [7, 8, 9]}],
[8, {name: 'SearchInput', lines: [7, 8, 9]}],
[9, {name: 'SearchInput', lines: [7, 8, 9]}],
[10, {name: 'VideoList', lines: [10, 11, 12]}],
[11, {name: 'VideoList', lines: [10, 11, 12]}],
[12, {name: 'VideoList', lines: [10, 11, 12]}],
[13, {name: 'SearchableVideoList'}],
]);
function Example3() {
const [area, meta, onLineHover] = useCodeHover(example3Areas);
const videos = [
{
id: 'vids-0',
title: 'React: The Documentary',
description: 'The origin story of React',
image: '/images/home/videos/documentary.webp',
url: 'https://www.youtube.com/watch?v=8pDqJVdNa44',
},
{
id: 'vids-1',
title: 'Rethinking Best Practices',
description: 'Pete Hunt (2013)',
image: '/images/home/videos/rethinking.jpg',
url: 'https://www.youtube.com/watch?v=x7cQ3mrcKaY',
},
{
id: 'vids-2',
title: 'Introducing React Native',
description: 'Tom Occhino (2015)',
image: '/images/home/videos/rn.jpg',
url: 'https://www.youtube.com/watch?v=KVZ-P-ZI6W4',
},
{
id: 'vids-3',
title: 'Introducing React Hooks',
description: 'Sophie Alpert and Dan Abramov (2018)',
image: '/images/home/videos/hooks.jpg',
url: 'https://www.youtube.com/watch?v=V-QO-KO90iQ',
},
{
id: 'vids-4',
title: 'Introducing Server Components',
description: 'Dan Abramov and Lauren Tan (2020)',
image: '/images/home/videos/rsc.jpg',
url: 'https://www.youtube.com/watch?v=TQQPAU21ZUw',
},
];
return (
{`import { useState } from 'react';
function SearchableVideoList({ videos }) {
const [searchText, setSearchText] = useState('');
const foundVideos = filterVideos(videos, searchText);
return (
<>
setSearchText(newText)} />
>
);
}`}
}
right={
React Videos
A brief history of React
}
/>
);
}
const example4Areas = new Map([
[6, {name: 'ConferenceLayout'}],
[7, {name: 'Suspense'}],
[8, {name: 'SearchableVideoList'}],
[9, {name: 'Suspense'}],
[10, {name: 'ConferenceLayout'}],
[17, {name: 'SearchableVideoList'}],
]);
function Example4() {
const [area, meta, onLineHover] = useCodeHover(example4Areas);
const [slug, setSlug] = useState('react-conf-2021');
const [animate, setAnimate] = useState(false);
function navigate(newSlug) {
setSlug(newSlug);
setAnimate(true);
}
return (
{`import { db } from './database.js';
import { Suspense } from 'react';
async function ConferencePage({ slug }) {
const conf = await db.Confs.find({ slug });
return (
}>
);
}
async function Talks({ confId }) {
const talks = await db.Talks.findAll({ confId });
const videos = talks.map(talk => talk.video);
return ;
}`}
}
right={
}
/>
);
}
function useNestedScrollLock(ref) {
useEffect(() => {
let node = ref.current;
let isLocked = false;
let lastScroll = performance.now();
function handleScroll() {
if (!isLocked) {
isLocked = true;
node.style.pointerEvents = 'none';
}
lastScroll = performance.now();
}
function updateLock() {
if (isLocked && performance.now() - lastScroll > 150) {
isLocked = false;
node.style.pointerEvents = '';
}
}
window.addEventListener('scroll', handleScroll);
const interval = setInterval(updateLock, 60);
return () => {
window.removeEventListener('scroll', handleScroll);
clearInterval(interval);
};
}, [ref]);
}
function ExamplePanel({
children,
noPadding,
noShadow,
height,
contentMarginTop,
}) {
return (
);
}
const NavContext = createContext(null);
function BrowserChrome({children, hasPulse, hasRefresh, domain, path}) {
const [restartId, setRestartId] = useState(0);
const isPulsing = hasPulse && restartId === 0;
const [shouldAnimatePulse, setShouldAnimatePulse] = useState(false);
const refreshRef = useRef(null);
useEffect(() => {
if (!isPulsing) {
return;
}
const observer = new IntersectionObserver(
(entries) => {
entries.forEach((entry) => {
setShouldAnimatePulse(entry.isIntersecting);
});
},
{
root: null,
rootMargin: `0px 0px`,
}
);
observer.observe(refreshRef.current);
return () => observer.disconnect();
}, [isPulsing]);
function handleRestart() {
confCache = new Map();
talksCache = new Map();
setRestartId((i) => i + 1);
}
return (
{hasRefresh &&
}
{domain}
{path != null && '/'}
{path}
{hasRefresh && (
{isPulsing && shouldAnimatePulse && (
)}
)}
{restartId > 0 && (
)}
{children}
);
}
function ConferencePage({slug}) {
const conf = use(fetchConf(slug));
return (
}>
);
}
function TalksLoading() {
return (
);
}
function Talks({confId}) {
const videos = use(fetchTalks(confId));
return ;
}
function SearchableVideoList({videos}) {
const [searchText, setSearchText] = useState('');
const foundVideos = filterVideos(videos, searchText);
return (
);
}
function filterVideos(videos, query) {
const keywords = query
.toLowerCase()
.split(' ')
.filter((s) => s !== '');
if (keywords.length === 0) {
return videos;
}
return videos.filter((video) => {
const words = (video.title + ' ' + video.description)
.toLowerCase()
.split(' ');
return keywords.every((kw) => words.some((w) => w.startsWith(kw)));
});
}
function VideoList({videos, emptyHeading}) {
let heading = emptyHeading;
const count = videos.length;
if (count > 0) {
const noun = count > 1 ? 'Videos' : 'Video';
heading = count + ' ' + noun;
}
return (
{heading}
{videos.map((video) => (
))}
);
}
function SearchInput({value, onChange}) {
const id = useId();
return (
);
}
function ConferenceLayout({conf, children}) {
const {slug, navigate} = useContext(NavContext);
const [isPending, startTransition] = useTransition();
return (
{
startTransition(() => {
navigate(e.target.value);
});
}}
className="appearance-none pe-8 ps-2 bg-transparent text-primary-dark text-2xl font-bold mb-0.5"
style={{
backgroundSize: '4px 4px, 4px 4px',
backgroundRepeat: 'no-repeat',
backgroundPosition:
'calc(100% - 20px) calc(1px + 50%),calc(100% - 16px) calc(1px + 50%)',
backgroundImage:
'linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%)',
}}>
React Conf 2021
React Conf 2019
{children}
);
}
function Cover({background, children}) {
return (
{children}
);
}
function Video({video}) {
return (
);
}
function Code({children}) {
return (
{children}
);
}
function Thumbnail({video}) {
const {image} = video;
return (
{typeof image !== 'string' ? (
<>
{image.speakers.map((src, i) => (
))}
React Conf
>
) : image.startsWith('/') ? null : (
)}
);
}
function ThumbnailPlaceholder() {
return (
);
}
// A hack since we don't actually have a backend.
// Unlike local state, this survives videos being filtered.
const likedVideos = new Set();
function LikeButton({video}) {
const [isLiked, setIsLiked] = useState(() => likedVideos.has(video.id));
const [animate, setAnimate] = useState(false);
return (
{
const nextIsLiked = !isLiked;
if (nextIsLiked) {
likedVideos.add(video.id);
} else {
likedVideos.delete(video.id);
}
setAnimate(true);
setIsLiked(nextIsLiked);
}}>
{isLiked ? (
) : (
)}
);
}
function SvgContainer({children}) {
return (
{children}
);
}
function NativeIcons() {
return (
);
}
function WebIcons() {
return (
);
}
// TODO: upgrade React and use the built-in version.
function use(promise) {
if (promise.status === 'fulfilled') {
return promise.value;
} else if (promise.status === 'rejected') {
throw promise.reason;
} else if (promise.status === 'pending') {
throw promise;
} else {
promise.status = 'pending';
promise.then(
(result) => {
promise.status = 'fulfilled';
promise.value = result;
},
(reason) => {
promise.status = 'rejected';
promise.reason = reason;
}
);
throw promise;
}
}
let confCache = new Map();
let talksCache = new Map();
const loadConfDelay = 250;
const loadTalksDelay = 1000;
function fetchConf(slug) {
if (confCache.has(slug)) {
return confCache.get(slug);
}
const promise = new Promise((resolve) => {
setTimeout(() => {
if (slug === 'react-conf-2021') {
resolve({
id: 0,
cover: reactConf2021Cover,
name: 'React Conf 2021',
});
} else if (slug === 'react-conf-2019') {
resolve({
id: 1,
cover: reactConf2019Cover,
name: 'React Conf 2019',
});
}
}, loadConfDelay);
});
confCache.set(slug, promise);
return promise;
}
function fetchTalks(confId) {
if (talksCache.has(confId)) {
return talksCache.get(confId);
}
const promise = new Promise((resolve) => {
setTimeout(() => {
if (confId === 0) {
resolve([
{
id: 'conf-2021-0',
title: 'React 18 Keynote',
description: 'The React Team',
url: 'https://www.youtube.com/watch?v=FZ0cG47msEk&list=PLNG_1j3cPCaZZ7etkzWA7JfdmKWT0pMsa&index=1',
image: {
speakers: [
'/images/home/conf2021/andrew.jpg',
'/images/home/conf2021/lauren.jpg',
'/images/home/conf2021/juan.jpg',
'/images/home/conf2021/rick.jpg',
],
},
},
{
id: 'conf-2021-1',
title: 'React 18 for App Developers',
description: 'Shruti Kapoor',
url: 'https://www.youtube.com/watch?v=ytudH8je5ko&list=PLNG_1j3cPCaZZ7etkzWA7JfdmKWT0pMsa&index=2',
image: {
speakers: ['/images/home/conf2021/shruti.jpg'],
},
},
{
id: 'conf-2021-2',
title: 'Streaming Server Rendering with Suspense',
description: 'Shaundai Person',
url: 'https://www.youtube.com/watch?v=pj5N-Khihgc&list=PLNG_1j3cPCaZZ7etkzWA7JfdmKWT0pMsa&index=3',
image: {
speakers: ['/images/home/conf2021/shaundai.jpg'],
},
},
{
id: 'conf-2021-3',
title: 'The First React Working Group',
description: 'Aakansha Doshi',
url: 'https://www.youtube.com/watch?v=qn7gRClrC9U&list=PLNG_1j3cPCaZZ7etkzWA7JfdmKWT0pMsa&index=4',
image: {
speakers: ['/images/home/conf2021/aakansha.jpg'],
},
},
{
id: 'conf-2021-4',
title: 'React Developer Tooling',
description: 'Brian Vaughn',
url: 'https://www.youtube.com/watch?v=oxDfrke8rZg&list=PLNG_1j3cPCaZZ7etkzWA7JfdmKWT0pMsa&index=5',
image: {
speakers: ['/images/home/conf2021/brian.jpg'],
},
},
{
id: 'conf-2021-5',
title: 'React without memo',
description: 'Xuan Huang (黄玄)',
url: 'https://www.youtube.com/watch?v=lGEMwh32soc&list=PLNG_1j3cPCaZZ7etkzWA7JfdmKWT0pMsa&index=6',
image: {
speakers: ['/images/home/conf2021/xuan.jpg'],
},
},
{
id: 'conf-2021-6',
title: 'React Docs Keynote',
description: 'Rachel Nabors',
url: 'https://www.youtube.com/watch?v=mneDaMYOKP8&list=PLNG_1j3cPCaZZ7etkzWA7JfdmKWT0pMsa&index=7',
image: {
speakers: ['/images/home/conf2021/rachel.jpg'],
},
},
{
id: 'conf-2021-7',
title: 'Things I Learnt from the New React Docs',
description: "Debbie O'Brien",
url: 'https://www.youtube.com/watch?v=-7odLW_hG7s&list=PLNG_1j3cPCaZZ7etkzWA7JfdmKWT0pMsa&index=8',
image: {
speakers: ['/images/home/conf2021/debbie.jpg'],
},
},
{
id: 'conf-2021-8',
title: 'Learning in the Browser',
description: 'Sarah Rainsberger',
url: 'https://www.youtube.com/watch?v=5X-WEQflCL0&list=PLNG_1j3cPCaZZ7etkzWA7JfdmKWT0pMsa&index=9',
image: {
speakers: ['/images/home/conf2021/sarah.jpg'],
},
},
{
id: 'conf-2021-9',
title: 'The ROI of Designing with React',
description: 'Linton Ye',
url: 'https://www.youtube.com/watch?v=7cPWmID5XAk&list=PLNG_1j3cPCaZZ7etkzWA7JfdmKWT0pMsa&index=10',
image: {
speakers: ['/images/home/conf2021/linton.jpg'],
},
},
{
id: 'conf-2021-10',
title: 'Interactive Playgrounds with React',
description: 'Delba de Oliveira',
url: 'https://www.youtube.com/watch?v=zL8cz2W0z34&list=PLNG_1j3cPCaZZ7etkzWA7JfdmKWT0pMsa&index=11',
image: {
speakers: ['/images/home/conf2021/delba.jpg'],
},
},
{
id: 'conf-2021-11',
title: 'Re-introducing Relay',
description: 'Robert Balicki',
url: 'https://www.youtube.com/watch?v=lhVGdErZuN4&list=PLNG_1j3cPCaZZ7etkzWA7JfdmKWT0pMsa&index=12',
image: {
speakers: ['/images/home/conf2021/robert.jpg'],
},
},
{
id: 'conf-2021-12',
title: 'React Native Desktop',
description: 'Eric Rozell and Steven Moyes',
url: 'https://www.youtube.com/watch?v=9L4FFrvwJwY&list=PLNG_1j3cPCaZZ7etkzWA7JfdmKWT0pMsa&index=13',
image: {
speakers: [
'/images/home/conf2021/eric.jpg',
'/images/home/conf2021/steven.jpg',
],
},
},
{
id: 'conf-2021-13',
title: 'On-device Machine Learning for React Native',
description: 'Roman Rädle',
url: 'https://www.youtube.com/watch?v=NLj73vrc2I8&list=PLNG_1j3cPCaZZ7etkzWA7JfdmKWT0pMsa&index=14',
image: {
speakers: ['/images/home/conf2021/roman.jpg'],
},
},
{
id: 'conf-2021-14',
title: 'React 18 for External Store Libraries',
description: 'Daishi Kato',
url: 'https://www.youtube.com/watch?v=oPfSC5bQPR8&list=PLNG_1j3cPCaZZ7etkzWA7JfdmKWT0pMsa&index=15',
image: {
speakers: ['/images/home/conf2021/daishi.jpg'],
},
},
{
id: 'conf-2021-15',
title: 'Building Accessible Components with React 18',
description: 'Diego Haz',
url: 'https://www.youtube.com/watch?v=dcm8fjBfro8&list=PLNG_1j3cPCaZZ7etkzWA7JfdmKWT0pMsa&index=16',
image: {
speakers: ['/images/home/conf2021/diego.jpg'],
},
},
{
id: 'conf-2021-16',
title: 'Accessible Japanese Form Components with React',
description: 'Tafu Nakazaki',
url: 'https://www.youtube.com/watch?v=S4a0QlsH0pU&list=PLNG_1j3cPCaZZ7etkzWA7JfdmKWT0pMsa&index=17',
image: {
speakers: ['/images/home/conf2021/tafu.jpg'],
},
},
{
id: 'conf-2021-17',
title: 'UI Tools for Artists',
description: 'Lyle Troxell',
url: 'https://www.youtube.com/watch?v=b3l4WxipFsE&list=PLNG_1j3cPCaZZ7etkzWA7JfdmKWT0pMsa&index=18',
image: {
speakers: ['/images/home/conf2021/lyle.jpg'],
},
},
{
id: 'conf-2021-18',
title: 'Hydrogen + React 18',
description: 'Helen Lin',
url: 'https://www.youtube.com/watch?v=HS6vIYkSNks&list=PLNG_1j3cPCaZZ7etkzWA7JfdmKWT0pMsa&index=19',
image: {
speakers: ['/images/home/conf2021/helen.jpg'],
},
},
]);
} else if (confId === 1) {
resolve([
{
id: 'conf-2019-0',
title: 'Keynote (Part 1)',
description: 'Tom Occhino',
url: 'https://www.youtube.com/watch?v=QnZHO7QvjaM&list=PLPxbbTqCLbGHPxZpw4xj_Wwg8-fdNxJRh',
image: {
speakers: ['/images/home/conf2019/tom.jpg'],
},
},
{
id: 'conf-2019-1',
title: 'Keynote (Part 2)',
description: 'Yuzhi Zheng',
url: 'https://www.youtube.com/watch?v=uXEEL9mrkAQ&list=PLPxbbTqCLbGHPxZpw4xj_Wwg8-fdNxJRh&index=2',
image: {
speakers: ['https://conf2019.reactjs.org/img/speakers/yuzhi.jpg'],
},
},
{
id: 'conf-2019-2',
title: 'Building The New Facebook With React and Relay (Part 1)',
description: 'Frank Yan',
url: 'https://www.youtube.com/watch?v=9JZHodNR184&list=PLPxbbTqCLbGHPxZpw4xj_Wwg8-fdNxJRh&index=3',
image: {
speakers: ['/images/home/conf2019/frank.jpg'],
},
},
{
id: 'conf-2019-3',
title: 'Building The New Facebook With React and Relay (Part 2)',
description: 'Ashley Watkins',
url: 'https://www.youtube.com/watch?v=KT3XKDBZW7M&list=PLPxbbTqCLbGHPxZpw4xj_Wwg8-fdNxJRh&index=4',
image: {
speakers: ['/images/home/conf2019/ashley.jpg'],
},
},
{
id: 'conf-2019-4',
title: 'How Our Team Is Using React Native to Save The World',
description: 'Tania Papazafeiropoulou',
url: 'https://www.youtube.com/watch?v=zVHWugBPGBE&list=PLPxbbTqCLbGHPxZpw4xj_Wwg8-fdNxJRh&index=5',
image: {
speakers: ['/images/home/conf2019/tania.jpg'],
},
},
{
id: 'conf-2019-5',
title:
'Using Hooks and Codegen to Bring the Benefits of GraphQL to REST APIs',
description: 'Tejas Kumar',
url: 'https://www.youtube.com/watch?v=cdsnzfJUqm0&list=PLPxbbTqCLbGHPxZpw4xj_Wwg8-fdNxJRh&index=6',
image: {
speakers: ['/images/home/conf2019/tejas.jpg'],
},
},
{
id: 'conf-2019-6',
title: 'Building a Custom React Renderer',
description: 'Sophie Alpert',
url: 'https://www.youtube.com/watch?v=CGpMlWVcHok&list=PLPxbbTqCLbGHPxZpw4xj_Wwg8-fdNxJRh&index=7',
image: {
speakers: ['/images/home/conf2019/sophie.jpg'],
},
},
{
id: 'conf-2019-7',
title: 'Is React Translated Yet?',
description: 'Nat Alison',
url: 'https://www.youtube.com/watch?v=lLE4Jqaek5k&list=PLPxbbTqCLbGHPxZpw4xj_Wwg8-fdNxJRh&index=12',
image: {
speakers: ['/images/home/conf2019/nat.jpg'],
},
},
{
id: 'conf-2019-8',
title: 'Building (And Re-Building) the Airbnb Design System',
description: 'Maja Wichrowska and Tae Kim',
url: 'https://www.youtube.com/watch?v=fHQ1WSx41CA&list=PLPxbbTqCLbGHPxZpw4xj_Wwg8-fdNxJRh&index=13',
image: {
speakers: [
'/images/home/conf2019/maja.jpg',
'/images/home/conf2019/tae.jpg',
],
},
},
{
id: 'conf-2019-9',
title: 'Accessibility Is a Marathon, Not a Sprint',
description: 'Brittany Feenstra',
url: 'https://www.youtube.com/watch?v=ONSD-t4gBb8&list=PLPxbbTqCLbGHPxZpw4xj_Wwg8-fdNxJRh&index=14',
image: {
speakers: ['/images/home/conf2019/brittany.jpg'],
},
},
{
id: 'conf-2019-10',
title: 'The State of React State in 2019',
description: 'Becca Bailey',
url: 'https://www.youtube.com/watch?v=wUMMUyQtMSg&list=PLPxbbTqCLbGHPxZpw4xj_Wwg8-fdNxJRh&index=15',
image: {
speakers: ['/images/home/conf2019/becca.jpg'],
},
},
{
id: 'conf-2019-11',
title: 'Let’s Program Like It’s 1999',
description: 'Lee Byron',
url: 'https://www.youtube.com/watch?v=vG8WpLr6y_U&list=PLPxbbTqCLbGHPxZpw4xj_Wwg8-fdNxJRh&index=16',
image: {
speakers: ['/images/home/conf2019/lee.jpg'],
},
},
{
id: 'conf-2019-12',
title: 'React Developer Tooling',
description: 'Brian Vaughn',
url: 'https://www.youtube.com/watch?v=Mjrfb1r3XEM&list=PLPxbbTqCLbGHPxZpw4xj_Wwg8-fdNxJRh&index=17',
image: {
speakers: ['/images/home/conf2019/brian.jpg'],
},
},
{
id: 'conf-2019-13',
title: 'Data Fetching With Suspense In Relay',
description: 'Joe Savona',
url: 'https://www.youtube.com/watch?v=Tl0S7QkxFE4&list=PLPxbbTqCLbGHPxZpw4xj_Wwg8-fdNxJRh&index=18',
image: {
speakers: ['/images/home/conf2019/joe.jpg'],
},
},
{
id: 'conf-2019-14',
title: 'Automatic Visualizations of the Frontend',
description: 'Cameron Yick',
url: 'https://www.youtube.com/watch?v=SbreAPNmZOk&list=PLPxbbTqCLbGHPxZpw4xj_Wwg8-fdNxJRh&index=19',
image: {
speakers: ['/images/home/conf2019/cameron.jpg'],
},
},
{
id: 'conf-2019-15',
title: 'React Is Fiction',
description: 'Jenn Creighton',
url: 'https://www.youtube.com/watch?v=kqh4lz2Lkzs&list=PLPxbbTqCLbGHPxZpw4xj_Wwg8-fdNxJRh&index=20',
image: {
speakers: ['/images/home/conf2019/jenn.jpg'],
},
},
{
id: 'conf-2019-16',
title: 'Progressive Web Animations',
description: 'Alexandra Holachek',
url: 'https://www.youtube.com/watch?v=laPsceJ4tTY&list=PLPxbbTqCLbGHPxZpw4xj_Wwg8-fdNxJRh&index=21',
image: {
speakers: ['/images/home/conf2019/alexandra.jpg'],
},
},
{
id: 'conf-2019-17',
title:
'Creating Games, Animations and Interactions with the Wick Editor',
description: 'Luca Damasco',
url: 'https://www.youtube.com/watch?v=laPsceJ4tTY&list=PLPxbbTqCLbGHPxZpw4xj_Wwg8-fdNxJRh&index=21',
image: {
speakers: ['/images/home/conf2019/luca.jpg'],
},
},
{
id: 'conf-2019-18',
title: 'Building React-Select',
description: 'Jed Watson',
url: 'https://www.youtube.com/watch?v=yS0jUnmBujE&list=PLPxbbTqCLbGHPxZpw4xj_Wwg8-fdNxJRh&index=25',
image: {
speakers: ['/images/home/conf2019/jed.jpg'],
},
},
{
id: 'conf-2019-19',
title: 'Promoting Transparency in Government Spending with React',
description: 'Lizzie Salita',
url: 'https://www.youtube.com/watch?v=CVfXICcNfHE&list=PLPxbbTqCLbGHPxZpw4xj_Wwg8-fdNxJRh&index=26',
image: {
speakers: ['/images/home/conf2019/lizzie.jpg'],
},
},
{
id: 'conf-2019-20',
title: 'Wonder-driven Development: Using React to Make a Spaceship',
description: 'Alex Anderson',
url: 'https://www.youtube.com/watch?v=aV0uOPWHKt4&list=PLPxbbTqCLbGHPxZpw4xj_Wwg8-fdNxJRh&index=27',
image: {
speakers: ['/images/home/conf2019/alex.jpg'],
},
},
]);
}
}, loadTalksDelay);
});
talksCache.set(confId, promise);
return promise;
}