{
 "kind": "tool",
 "slug": "react",
 "path": "tools/react/",
 "name": "React",
 "maker": null,
 "density": "full",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Web frameworks",
   "tools/web-frameworks/"
  ]
 ],
 "lead": "Build the interactive parts of web apps.",
 "chips": [
  {
   "label": "Web frameworks",
   "path": "tools/web-frameworks/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install react"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/react/react"
  },
  {
   "label": "Website",
   "href": "https://react.dev/"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": "without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software",
   "note": "MIT allows use in paid and closed-source products.",
   "src": "https://github.com/react/react/blob/main/LICENSE"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 23, 2026",
   "note": "Latest GitHub release Oct 14, 2026. ",
   "src": "https://github.com/react/react"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "2,038 projects",
   "status": "info",
   "sub": "#1 of 76 in its category",
   "note": "Dependency in 2,038 public GitHub projects set up for AI coding agents that we scanned (32.6%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Docs for agents",
   "status": "yes",
   "sub": "llms.txt",
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": "https://react.dev/llms.txt"
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily; card checked Nov 10, 2026.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What React does",
   "parts": [
    {
     "t": "prose",
     "text": "React is a free JavaScript library for building the parts of a web page people click and type into, from one button to a whole app. You describe each piece once, such as a plan card or a search box, and React updates the screen when the data changes. Routing, data loading and hosting come from a framework built on it, such as Next.js."
    },
    {
     "t": "h3",
     "text": "What people build with it"
    },
    {
     "t": "uses",
     "items": [
      {
       "title": "Buttons and forms that react to clicks",
       "text": "A counter, a like button or a form that shows errors while someone types; the screen changes as soon as the data does.",
       "idea": false
      },
      {
       "title": "A pricing page with a yearly switch",
       "text": "Visitors flip between monthly and yearly prices and pick a plan; the cards and the summary line update at once.",
       "idea": true
      },
      {
       "title": "Add a widget to an existing site",
       "text": "Your site is built with Rails, Django or plain HTML; React runs only inside one box on the page, such as a calculator or a booking form.",
       "idea": false
      },
      {
       "title": "A whole web app or site",
       "text": "For a new app with many pages, sign-in and data, start from a React framework that adds page routing and loading.",
       "idea": false
      },
      {
       "title": "Reuse the same piece everywhere",
       "text": "A product card, a price tag or a sign-up box is written once and used on every page, so a change shows up everywhere.",
       "idea": false
      },
      {
       "title": "Phone apps from the same skills",
       "text": "The same component style also builds iPhone and Android apps through React Native, so a web team can make a mobile app.",
       "idea": false
      }
     ]
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "React popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "96",
       "of": "/ 100",
       "l": "Gid Score, #1 overall"
      },
      {
       "n": "276M",
       "l": "downloads a week, npm"
      },
      {
       "n": "253K",
       "l": "GitHub stars"
      },
      {
       "n": "2,038",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How React is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "React is a dependency in 2,038 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (41.9% of the 4,867 JavaScript/TypeScript ones), #1 of 76 in web frameworks.",
      "Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 9,721; those are left out of every share on this page.",
      "The most used alternative in our scan is Vue (169 projects).",
      "Projects that use it most often also use Tailwind CSS (79.6%), Lucide React (60.8%), Next.js (54.1%).",
      "It is more common in projects set up for Devin Desktop (43.0%) than for OpenCode (27.7%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "1,070 projects, 32.7%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "954 projects, 31.4%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "939 projects, 38.5%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "143 projects, 30.2%",
       "v": "Gemini CLI",
       "path": "agents/gemini-cli/"
      },
      {
       "l": "131 projects, 27.9%",
       "v": "OpenAI Codex",
       "path": "agents/openai-codex/"
      },
      {
       "l": "120 projects, 43.0%",
       "v": "Devin Desktop",
       "path": "agents/devin-desktop/"
      },
      {
       "l": "95 projects, 27.7%",
       "v": "OpenCode",
       "path": "agents/opencode/"
      },
      {
       "l": "50 projects, 35.7%",
       "v": "Kiro",
       "path": "agents/kiro/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 79.6% of its projects",
       "v": "Tailwind CSS",
       "path": "tools/tailwindcss/"
      },
      {
       "l": "In 60.8% of its projects",
       "v": "Lucide React",
       "path": "tools/lucide-react/"
      },
      {
       "l": "In 54.1% of its projects",
       "v": "Next.js",
       "path": "tools/next/"
      },
      {
       "l": "In 55.7% of its projects",
       "v": "clsx",
       "path": "tools/clsx/"
      },
      {
       "l": "In 92.7% of its projects",
       "v": "TypeScript",
       "path": "tools/typescript/"
      },
      {
       "l": "In 53.7% of its projects",
       "v": "Tailwind Merge",
       "path": "tools/tailwind-merge/"
      },
      {
       "l": "In 72.0% of its projects",
       "v": "ESLint",
       "path": "tools/eslint/"
      },
      {
       "l": "In 48.0% of its projects",
       "v": "Class Variance Authority",
       "path": "tools/class-variance-authority/"
      }
     ]
    }
   ]
  },
  {
   "id": "profile",
   "nav": "Profile",
   "h2": "React in practice",
   "parts": [
    {
     "t": "h3",
     "text": "Strengths"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "Fits into an existing page",
       "v": "You don't need to rewrite a site to start. The site says you can add React to an existing HTML page and render interactive components anywhere on it."
      },
      {
       "l": "Logic is plain JavaScript",
       "v": "There is no template language to learn for conditions and loops. You use <code>if</code> statements and <code>array.map()</code> inside component functions."
      },
      {
       "l": "Real native views on mobile",
       "v": "React Native and Expo render React components as real Android and iOS views, not a web view. The site says this lets a team build web and native apps with the same skills."
      },
      {
       "l": "Changes checked against Meta's code",
       "v": "The maintainers write that every commit is tested on \"business-critical surfaces with over a billion users\", and that over 100,000 React components at Meta help validate every migration strategy. They also say only proven approaches become part of React."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Watch out for"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "You still need a framework for a full app",
       "v": "React does not handle routing or data fetching. The site recommends Next.js or React Router to build an entire app."
      },
      {
       "l": "No built-in styling approach",
       "v": "You add classes with <code>className</code>, but React does not say how CSS files get into the project. The docs point you to your build tool or framework's documentation."
      },
      {
       "l": "Hooks have placement rules",
       "v": "Functions whose names start with <code>use</code> are Hooks. The Quick Start says they are more restrictive than other functions: you can only call them at the top of your components or other Hooks."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Render a component into the page"
    },
    {
     "t": "tabs",
     "label": "Example",
     "items": [
      {
       "tab": "Jsx",
       "code": "import { createRoot } from 'react-dom/client';\n\nfunction HelloMessage({ name }) {\n  return <div>Hello {name}</div>;\n}\n\nconst root = createRoot(document.getElementById('container'));\nroot.render(<HelloMessage name=\"Taylor\" />);"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "profile",
   "h2": "More about React",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Agent Skills for it",
       "path": "skills/",
       "items": [
        "react-modernization: Upgrade React applications to latest versions, migrate from class components to hooks, and adopt concurrent features. Use when modernizing R",
        "react-native-dev: React Native and Expo development guide covering components, styling, animations, navigation, state management, forms, networking, performan",
        "react-expert: Use when building React 18+ applications in .jsx or .tsx files, Next.js App Router projects, or create-react-app setups. Creates components,",
        "react-vite-dashboard: Convert Stitch designs into production React + Vite dashboards with TanStack Query, accessible tokens from DESIGN.md, and Web3-ready pattern",
        "react-composition-patterns: React composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component librarie",
        "react-hook-form: React Hook Form performance optimization for client-side form validation using useForm, useWatch, useController, useFieldArray, the subscrib"
       ]
      },
      {
       "title": "Head to head",
       "items": [
        {
         "text": "React vs Vue",
         "note": "used together in 8 projects",
         "path": "tools/compare/react-vs-vue/"
        },
        {
         "text": "React vs Angular",
         "note": "used together in 4 projects",
         "path": "tools/compare/react-vs-angular/"
        },
        {
         "text": "React vs Svelte",
         "note": "used together in 4 projects",
         "path": "tools/compare/react-vs-svelte/"
        }
       ]
      },
      {
       "title": "Packages around it",
       "items": [
        "react-dom: Browser renderer for React",
        "tailwindcss: Utility-first CSS",
        "eslint: JavaScript linter",
        "next: Full-stack React framework",
        "lucide-react: Icon components",
        "clsx: className string builder"
       ]
      },
      {
       "title": "More in Web frameworks",
       "path": "tools/web-frameworks/",
       "items": [
        {
         "text": "Next.js",
         "path": "tools/next/"
        },
        {
         "text": "next-themes",
         "path": "tools/next-themes/"
        },
        {
         "text": "React Router",
         "path": "tools/react-router-dom/"
        },
        {
         "text": "Astro",
         "path": "tools/astro/"
        },
        {
         "text": "React Native Web",
         "path": "tools/react-native-web/"
        },
        {
         "text": "next-intl",
         "path": "tools/next-intl/"
        },
        {
         "text": "Streamlit",
         "path": "tools/streamlit/"
        },
        {
         "text": "TanStack Router",
         "path": "tools/tanstack-react-router/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "React",
       "me": true,
       "facts": [
        "MIT",
        "Gid 96",
        "276M/wk"
       ]
      },
      {
       "name": "Vue",
       "why": "Pick Vue when you prefer HTML-like templates over writing the screen in JavaScript; it is another framework for interactive pages.",
       "path": "tools/vue/",
       "facts": [
        "MIT",
        "Gid 80",
        "26.8M/wk"
       ]
      },
      {
       "name": "Preact",
       "why": "Pick Preact when page weight matters most; our catalog lists it as a 4 kB alternative with the same modern style.",
       "path": "tools/preact/",
       "facts": []
      },
      {
       "name": "Astro",
       "why": "Pick Astro for content sites that are mostly static, adding interactive parts only where needed.",
       "path": "tools/astro/",
       "facts": []
      },
      {
       "name": "Angular",
       "why": "Full-featured web framework with TypeScript, dependency injection and RxJS.",
       "path": "tools/angular/",
       "facts": [
        "MIT",
        "Gid 76",
        "8.3M/wk"
       ]
      },
      {
       "name": "Svelte",
       "why": "Compiler-based frontend framework for building reactive web interfaces with less boilerplate.",
       "path": "tools/svelte/",
       "facts": [
        "MIT",
        "Gid 77",
        "10.4M/wk"
       ]
      },
      {
       "name": "Nuxt",
       "why": "Full-stack Vue.js framework for building type-safe production applications.",
       "path": "tools/nuxt/",
       "facts": [
        "MIT",
        "Gid 70",
        "3.5M/wk"
       ]
      }
     ],
     "more": "Compare React with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "prompt",
     "text": "Use react and react-dom 19.3.1 (same exact version for both), render with createRoot from react-dom/client, write components as functions with hooks, and do not use ReactDOM.render, propTypes or Create React App."
    },
    {
     "t": "steps",
     "items": [
      {
       "text": "For a new app, start from a framework that the React docs list, such as Next.js or React Router, with a pinned version.",
       "code": null,
       "src": "https://react.dev/learn/creating-a-react-app"
      },
      {
       "text": "To add React to an existing project, install both packages.",
       "code": "npm install react react-dom",
       "src": "https://react.dev/learn/add-react-to-an-existing-project"
      },
      {
       "text": "Then render your first component into a box on the page with createRoot.",
       "code": "import { createRoot } from 'react-dom/client';\nconst domNode = document.getElementById('root');\nconst root = createRoot(domNode);\n",
       "src": "https://react.dev/reference/react-dom/client/createRoot"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Rules for your agent"
    },
    {
     "t": "rules",
     "label": "Paste into AGENTS.md or CLAUDE.md",
     "text": "## React\n- Start component names with a capital letter. HTML tags stay lowercase.\n- Close every JSX tag (`<br />`). Wrap multiple returned tags in one parent or an empty `<>...</>` wrapper.\n- Give each list item a `key` that is a string or number from the data, such as a database ID, unique among its siblings.\n- Pass event handlers without calling them: `onClick={handleClick}`, with no parentheses at the end.\n- Call Hooks such as `useState` only at the top of components or other Hooks.\n- With React Compiler, rely on the compiler for memoization in new code. In existing code, leave `useMemo`/`useCallback` in place or test carefully before removing them.\n- React does not do routing or data fetching. For a full app, use a framework such as Next.js or React Router.\n"
    },
    {
     "t": "h3",
     "text": "Mistakes to avoid"
    },
    {
     "t": "mistakes",
     "items": [
      {
       "dont": "import { render } from 'react-dom'; render(<App />, el)",
       "fix": "import { createRoot } from 'react-dom/client'; createRoot(el).render(<App />)",
       "why": "ReactDOM.render was removed in React 19."
      },
      {
       "dont": "<script src=\"https://unpkg.com/react@19/umd/react.production.min.js\">",
       "fix": "Use a build tool such as Vite, or load React as a module from an ESM-based CDN",
       "why": "React 19 no longer publishes UMD (script-tag) builds."
      },
      {
       "dont": "npx create-react-app my-app",
       "fix": "Start with a framework from the docs (Next.js, React Router) or Vite",
       "why": "Create React App is deprecated."
      },
      {
       "dont": "Relying on propTypes on function components to catch bad props",
       "fix": "Use TypeScript or another type checker",
       "why": "React 19 silently ignores propTypes."
      },
      {
       "dont": "Keeping a Server Components app on react-server-dom-* 19.0, 19.1.0, 19.1.1 or 19.2.0",
       "fix": "Update React and the framework (Next.js, React Router and others) to their patched releases",
       "why": "Those versions have a critical remote code execution hole (CVE-2025-55182)."
      }
     ]
    }
   ]
  },
  {
   "id": "faq",
   "nav": "Questions",
   "h2": "Questions",
   "parts": [
    {
     "t": "faq",
     "items": [
      {
       "q": "Can I just add a script tag, without a build step?",
       "a": "React 19 no longer ships the old script-tag files. The docs suggest loading it as a module from an ESM-based CDN; for real projects they use a build tool.",
       "evidence": {
        "url": "https://react.dev/blog/2024/04/25/react-19-upgrade-guide",
        "quote": "Starting with React 19, React will no longer produce UMD builds to reduce the complexity of its testing and release process."
       }
      },
      {
       "q": "Do I need a server to use a React framework?",
       "a": "No. The frameworks the docs list can also make a static site or a single-page app that you host as plain files.",
       "evidence": {
        "url": "https://react.dev/learn/creating-a-react-app",
        "quote": "Full-stack frameworks do not require a server."
       }
      },
      {
       "q": "Can I use React on only part of a page?",
       "a": "Yes. You can render React components into one or several boxes on an existing page.",
       "evidence": {
        "url": "https://react.dev/reference/react-dom/client/createRoot",
        "quote": "A page that uses “sprinkles” of React for parts of the page may have as many separate roots as needed."
       }
      },
      {
       "q": "What is the current version?",
       "a": "The docs show 19.3 as the latest version; 19.3.1 is the current release on the package registry.",
       "evidence": {
        "url": "https://react.dev/versions",
        "quote": "Latest version: 19.3"
       }
      }
     ]
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm react"
  ],
  [
   "Category",
   "Web frameworks"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Latest version",
   "v19.3.0, September 9, 2026"
  ],
  [
   "On GitHub since",
   "May 2013"
  ],
  [
   "Gid Score",
   "95.5"
  ],
  [
   "Rank in category",
   "#1 of 76"
  ],
  [
   "GitHub",
   "react/react"
  ],
  [
   "Last change",
   "Nov 23, 2026"
  ]
 ],
 "good": [
  "React draws the screen but does not decide pages, links or data loading. For a full app the docs recommend a framework.",
  "You need Node.js on your computer to develop with it, even though the finished site can be plain files.",
  "Create React App, the old starter kit, is retired. Do not start new projects with it."
 ],
 "checked_line": "Read by AgentGid from 15 official pages, card checked Nov 10, 2026; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/react.png"
}