Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: kirupa/reactjs.org
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: reactjs/react.dev
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Able to merge. These branches can be automatically merged.

Commits on Jan 20, 2018

  1. Fix typo

    Ediiik authored Jan 20, 2018
    Copy the full SHA
    90fa549 View commit details

Commits on Jul 9, 2018

  1. Fix typo

    Edouard Alvard committed Jul 9, 2018
    Copy the full SHA
    984abd2 View commit details

Commits on Oct 25, 2018

  1. Copy the full SHA
    a8e5cc4 View commit details

Commits on Oct 26, 2018

  1. Small typo fix

    tusharkhatiwada authored Oct 26, 2018
    Copy the full SHA
    a531a0f View commit details
  2. Tip => Note

    "Tip" usually contains an action for you to perform.
    "Note" is more appropriate here since it's just an FYI.
    moroshko authored Oct 26, 2018
    Copy the full SHA
    451a96c View commit details

Commits on Oct 28, 2018

  1. Fix typo in Hooks FAQ

    hnordt authored Oct 28, 2018
    Copy the full SHA
    7fd8a8d View commit details

Commits on Dec 9, 2018

  1. Copy the full SHA
    6163fd7 View commit details

Commits on Dec 29, 2018

  1. Add /tutorial redirect

    sophiebits committed Dec 29, 2018
    Copy the full SHA
    66a71c7 View commit details
  2. Copy the full SHA
    d9de84b View commit details
  3. Copy the full SHA
    3581b4e View commit details

Commits on Dec 30, 2018

  1. add React Iran Conference

    arash817 authored Dec 30, 2018
    Copy the full SHA
    cd4461c View commit details
  2. Merge pull request reactjs#1479 from alexkrolick/publish-15-6

    add link to rebuilt 15.6 docs
    bvaughn authored Dec 30, 2018
    Copy the full SHA
    e097834 View commit details

Commits on Jan 1, 2019

  1. Copy the full SHA
    e4f43bd View commit details

Commits on Jan 2, 2019

  1. clarify mountNode with comments

    This is still a bit opaque but it's difficult to fix with the current way
    CodeEditor works:
    - long-term CodeEditor.js could take a node reference instead of defining
      mountNode internally
    - could also use document.createElement to define the target in the code,
      but this could be mislead people to think this is required instead of
      using an existing reference
    
    see reactjs#1017, reactjs#1018, reactjs#1019
    alexkrolick committed Jan 2, 2019
    Copy the full SHA
    6f6fc8d View commit details
  2. Copy the full SHA
    c277c56 View commit details
  3. Merge pull request reactjs#1518 from arash817/patch-1

    add React Iran Conference
    alexkrolick authored Jan 2, 2019
    Copy the full SHA
    af10d51 View commit details
  4. Merge pull request reactjs#1521 from reactjs/mountnode

    clarify mountNode with comments
    alexkrolick authored Jan 2, 2019
    Copy the full SHA
    33363a6 View commit details
  5. Add Portugal Meetup (reactjs#1523)

    flexbox authored and gaearon committed Jan 2, 2019
    Copy the full SHA
    68cd431 View commit details
  6. Copy the full SHA
    ea03fe7 View commit details
  7. Copy the full SHA
    97831ab View commit details
  8. Update version expected to include hooks (reactjs#1511)

    * Update version expected to include hooks
    
    16.7.0 does not include hooks, I suppose 16.8 could include them.
    
    * Remove specific version
    mvasin authored and gaearon committed Jan 2, 2019
    Copy the full SHA
    dbcc9c2 View commit details
  9. Copy the full SHA
    8127896 View commit details
  10. Copy the full SHA
    ac426af View commit details

Commits on Jan 3, 2019

  1. Rearrange TS section a bit

    gaearon committed Jan 3, 2019
    Copy the full SHA
    6f2e26f View commit details

Commits on Jan 6, 2019

  1. fixed renderer

    I fixed only a typo
    0xflotus authored Jan 6, 2019
    Copy the full SHA
    3f7a7dd View commit details
  2. Merge pull request reactjs#1537 from 0xflotus/patch-1

    fixed renderer
    alexkrolick authored Jan 6, 2019
    Copy the full SHA
    22732d4 View commit details

Commits on Jan 9, 2019

  1. Bump gatsby-remark-autolink-headers, fixes sidebar links not correctl…

    …y jumping to referenced element (reactjs#1370)
    
    * Bump gatsby-remark-autolink-headers
    
    * Bump gatsby-remark-autolink-headers to latest
    fk authored and gaearon committed Jan 9, 2019
    Copy the full SHA
    1389d0a View commit details
  2. Copy the full SHA
    92d96a3 View commit details

Commits on Jan 10, 2019

  1. Copy the full SHA
    b5fa1df View commit details
  2. rename useImperativeMethods -> useImperativeHandle

    Sunil Pai committed Jan 10, 2019
    Copy the full SHA
    53222c7 View commit details
  3. createInstance -> createHandle

    Sunil Pai committed Jan 10, 2019
    Copy the full SHA
    1b8dd36 View commit details
  4. Add 16.7 to versions (reactjs#1543)

    eps1lon authored and gaearon committed Jan 10, 2019
    Copy the full SHA
    a787200 View commit details
  5. React New York Conf (reactjs#1497)

    * react new york conf
    
    * typo fix
    juicycleff authored and alexkrolick committed Jan 10, 2019
    Copy the full SHA
    73cb6ba View commit details

Commits on Jan 11, 2019

  1. Fix typo in profiler-readme

    `aso` -> `also`
    narinluangrath authored Jan 11, 2019
    Copy the full SHA
    9e9647c View commit details

Commits on Jan 12, 2019

  1. fix typo in blog post

    natusaspire committed Jan 12, 2019
    Copy the full SHA
    b3d1503 View commit details

Commits on Jan 14, 2019

  1. Remove unnecessary newline

    gaearon authored Jan 14, 2019
    Copy the full SHA
    71aa4fa View commit details
  2. Copy the full SHA
    cda9910 View commit details

Commits on Jan 15, 2019

  1. Revert "Extended JavaScript environment requirements polyfills list w…

    …ith a promise (reactjs#1553)" (reactjs#1554)
    
    This reverts commit cda9910.
    gaearon authored Jan 15, 2019
    Copy the full SHA
    60dd46d View commit details
  2. Merge remote-tracking branch 'upstream/master'

    Sunil Pai committed Jan 15, 2019
    Copy the full SHA
    06b08a2 View commit details
  3. Add note about Promise polyfill for React.lazy (reactjs#1556)

    * Add note about Promise polyfill for React.lazy
    
    Fixes reactjs#1552
    
    * Backticks
    alexkrolick authored Jan 15, 2019
    Copy the full SHA
    165ae04 View commit details
  4. Add docs for useDebugValue

    Brian Vaughn committed Jan 15, 2019
    Copy the full SHA
    4c29b69 View commit details
  5. Wordsmithing

    Brian Vaughn committed Jan 15, 2019
    Copy the full SHA
    efcbcc5 View commit details
  6. Merge pull request reactjs#1557 from bvaughn/useDebugValue

    Add docs for useDebugValue
    bvaughn authored Jan 15, 2019
    Copy the full SHA
    df240a4 View commit details
  7. Merge pull request reactjs#1544 from threepointone/master

    rename useImperativeMethods -> useImperativeHandle
    bvaughn authored Jan 15, 2019
    Copy the full SHA
    924e76d View commit details

Commits on Jan 16, 2019

  1. Typo fix

    Prashant Andani committed Jan 16, 2019
    Copy the full SHA
    d8a8309 View commit details
  2. Typo fix (reactjs#1562)

    prashant-andani authored and gaearon committed Jan 16, 2019
    Copy the full SHA
    17fdc42 View commit details
  3. Copy the full SHA
    d7d5533 View commit details

Commits on Jan 17, 2019

  1. Clarify conflicting advice

    gaearon committed Jan 17, 2019
    Copy the full SHA
    1a49812 View commit details
  2. Tweak useMemo wording (reactjs#1569)

    * Tweak useMemo wording
    
    * Update hooks-faq.md
    
    * Update hooks-reference.md
    
    * Be more specific
    gaearon authored Jan 17, 2019
    Copy the full SHA
    9b5638f View commit details
  3. typo

    gaearon committed Jan 17, 2019
    Copy the full SHA
    26b0eb2 View commit details
Showing 1,163 changed files with 114,851 additions and 53,315 deletions.
41 changes: 0 additions & 41 deletions .babelrc

This file was deleted.

20 changes: 0 additions & 20 deletions .circleci/config.yml

This file was deleted.

Empty file added .env.development
Empty file.
1 change: 1 addition & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NEXT_PUBLIC_GA_TRACKING_ID = 'G-B1E83PJ3RT'
13 changes: 3 additions & 10 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
node_modules/*

# Ignore markdown files and examples
content/*

# Ignore built files
public/*

# Ignore examples
examples/*
scripts
plugins
next.config.js
23 changes: 12 additions & 11 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
{
"extends": [
"fbjs"
],
"plugins": [
"prettier",
"react"
],
"parser": "babel-eslint",
"root": true,
"extends": "next/core-web-vitals",
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "eslint-plugin-react-compiler"],
"rules": {
"relay/graphql-naming": 0,
"max-len": 0
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error", {"varsIgnorePattern": "^_"}],
"react-hooks/exhaustive-deps": "error",
"react/no-unknown-property": ["error", {"ignore": ["meta"]}],
"react-compiler/react-compiler": "error"
},
"env": {
"node": true,
"browser": true
"commonjs": true,
"browser": true,
"es6": true
}
}
35 changes: 0 additions & 35 deletions .flowconfig

This file was deleted.

34 changes: 34 additions & 0 deletions .github/ISSUE_TEMPLATE/0-bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: "🐛 Report a bug"
description: "Report a problem on the website."
title: "[Bug]: "
labels: ["bug: unconfirmed"]
body:
- type: textarea
attributes:
label: Summary
description: |
A clear and concise summary of what the bug is.
placeholder: |
Example bug report:
When I click the "Submit" button on "Feedback", nothing happens.
validations:
required: true
- type: input
attributes:
label: Page
description: |
What page(s) did you encounter this bug on?
placeholder: |
https://react.dev/
validations:
required: true
- type: textarea
attributes:
label: Details
description: |
Please provide any additional details about the bug.
placeholder: |
Example details:
The "Submit" button is unresponsive. I've tried refreshing the page and using a different browser, but the issue persists.
validations:
required: false
34 changes: 34 additions & 0 deletions .github/ISSUE_TEMPLATE/1-typo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: "🤦 Typo or mistake"
description: "Report a typo or mistake in the docs."
title: "[Typo]: "
labels: ["type: typos"]
body:
- type: textarea
attributes:
label: Summary
description: |
A clear and concise summary of what the mistake is.
placeholder: |
Example:
The code example on the "useReducer" page includes an unused variable `nextId`.
validations:
required: true
- type: input
attributes:
label: Page
description: |
What page is the typo on?
placeholder: |
https://react.dev/
validations:
required: true
- type: textarea
attributes:
label: Details
description: |
Please provide a explanation for why this is a mistake.
placeholder: |
Example mistake:
In the "useReducer" section of the "API Reference" page, the code example under "Writing a reducer function" includes an unused variable `nextId` that should be removed.
validations:
required: false
34 changes: 34 additions & 0 deletions .github/ISSUE_TEMPLATE/2-suggestion.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: "💡 Suggestions"
description: "Suggest a new page, section, or edit for an existing page."
title: "[Suggestion]: "
labels: ["type: documentation"]
body:
- type: textarea
attributes:
label: Summary
description: |
A clear and concise summary of what we should add.
placeholder: |
Example:
Add a new page for how to use React with TypeScript.
validations:
required: true
- type: input
attributes:
label: Page
description: |
What page is this about?
placeholder: |
https://react.dev/
validations:
required: false
- type: textarea
attributes:
label: Details
description: |
Please provide a explanation for what you're suggesting.
placeholder: |
Example:
I think it would be helpful to have a page that explains how to use React with TypeScript. This could include a basic example of a component written in TypeScript, and a link to the TypeScript documentation.
validations:
required: true
116 changes: 116 additions & 0 deletions .github/ISSUE_TEMPLATE/3-framework.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
name: "📄 Suggest new framework"
description: "I am a framework author applying to be included as a recommended framework."
title: "[Framework]: "
labels: ["type: framework"]
body:
- type: markdown
attributes:
value: |
## Apply to be included as a recommended React framework
_This form is for framework authors to apply to be included as a recommended [React framework](https://react.dev/learn/start-a-new-react-project). If you are not a framework author, please contact the authors before submitting._
Our goal when recommending a framework is to start developers with a React project that solves common problems like code splitting, data fetching, routing, and HTML generation without any extra work later. We believe this will allow users to get started quickly with React, and scale their app to production.
While we understand that many frameworks may want to be featured, this page is not a place to advertise every possible React framework or all frameworks that you can add React to. There are many great frameworks that offer support for React that are not listed in our guides. The frameworks we recommend have invested significantly in the React ecosystem, and collaborated with the React team to be compatible with our [full-stack React architecture vision](https://react.dev/learn/start-a-new-react-project#which-features-make-up-the-react-teams-full-stack-architecture-vision).
To be included, frameworks must meet the following criteria:
- **Free & open-source**: must be open source and free to use.
- **Well maintained**. must be actively maintained, providing bug fixes and improvements.
- **Active community**: must have a sufficiently large and active community to support users.
- **Clear onboarding**: must have clear install steps to install the React version of the framework.
- **Ecosystem compatibility**: must support using the full range of libraries and tools in the React ecosystem.
- **Self-hosting option**: must support an option to self-host applications without losing access to features.
- **Developer experience**. must allow developers to be productive by supporting features like Fast Refresh.
- **User experience**. must provide built-in support for common problems like routing and data-fetching.
- **Compatible with our future vision for React**. React evolves over time, and frameworks that do not align with React’s direction risk isolating their users from the main React ecosystem over time. To be included on this page we must feel confident that the framework is setting its users up for success with React over time.
Please note, we have reviewed most of the popular frameworks available today, so it is unlikely we have not considered your framework already. But if you think we missed something, please complete the application below.
- type: input
attributes:
label: Name
description: |
What is the name of your framework?
validations:
required: true
- type: input
attributes:
label: Homepage
description: |
What is the URL of your homepage?
validations:
required: true
- type: input
attributes:
label: Install instructions
description: |
What is the URL of your getting started guide?
validations:
required: true
- type: dropdown
attributes:
label: Is your framework open source?
description: |
We only recommend free and open source frameworks.
options:
- 'No'
- 'Yes'
validations:
required: true
- type: textarea
attributes:
label: Well maintained
description: |
Please describe how your framework is actively maintained. Include recent releases, bug fixes, and improvements as examples.
validations:
required: true
- type: textarea
attributes:
label: Active community
description: |
Please describe your community. Include the size of your community, and links to community resources.
validations:
required: true
- type: textarea
attributes:
label: Clear onboarding
description: |
Please describe how a user can install your framework with React. Include links to any relevant documentation.
validations:
required: true
- type: textarea
attributes:
label: Ecosystem compatibility
description: |
Please describe any limitations your framework has with the React ecosystem. Include any libraries or tools that are not compatible with your framework.
validations:
required: true
- type: textarea
attributes:
label: Self-hosting option
description: |
Please describe how your framework supports self-hosting. Include any limitations to features when self-hosting. Also include whether you require a server to deploy your framework.
validations:
required: true
- type: textarea
attributes:
label: Developer Experience
description: |
Please describe how your framework provides a great developer experience. Include any limitations to React features like React DevTools, Chrome DevTools, and Fast Refresh.
validations:
required: true
- type: textarea
attributes:
label: User Experience
description: |
Please describe how your framework helps developers create high quality user experiences by solving common use-cases. Include specifics for how your framework offers built-in support for code-splitting, routing, HTML generation, and data-fetching in a way that avoids client/server waterfalls by default. Include details on how you offer features such as SSG and SSR.
validations:
required: true
- type: textarea
attributes:
label: Compatible with our future vision for React
description: |
Please describe how your framework aligns with our future vision for React. Include how your framework will evolve with React over time, and your plans to support future React features like React Server Components.
validations:
required: true
7 changes: 7 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
contact_links:
- name: 📃 Bugs in React
url: https://github.com/facebook/react/issues/new/choose
about: This issue tracker is not for bugs in React. Please file React issues here.
- name: 🤔 Questions and Help
url: https://reactjs.org/community/support.html
about: This issue tracker is not for support questions. Please refer to the React community's help and discussion forums.
4 changes: 1 addition & 3 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@


<!--
Thank you for the PR! Contributors like you keep React awesome!
Please see the Contribution Guide for guidelines:
https://github.com/reactjs/reactjs.org/blob/master/CONTRIBUTING.md
https://github.com/reactjs/react.dev/blob/main/CONTRIBUTING.md
If your PR references an existing issue, please add the issue number below
Loading