Skip to content

Commit

Permalink
docs: fix typo in fixtures/nesting/README.md (#27507)
Browse files Browse the repository at this point in the history
  • Loading branch information
suravshrestha authored and rickhanlonii committed Apr 11, 2024
1 parent d7e2bb3 commit 502bca5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fixtures/nesting/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ We will use three different `package.json`s: one for non-React code at the root,
- **`src/legacy/package.json`**: This is where we declare the `react` and `react-dom` dependencies for the "legacy" trees. In this demo, we're using React 16.8 (although, as noted above, we could downgrade it further below). This is **also** where we specify any third-party libraries that use React. For example, we include `react-router` and `react-redux` in this example.
- **`src/modern/package.json`**: This is where we declare the `react` and `react-dom` dependencies for the "modern" trees. In this demo, we're using React 17. Here, we also specify third-party dependencies that use React and are used from the modern part of our app. This is why we *also* have `react-router` and `react-redux` in this file. (Their versions don't strictly have to match their `legacy` counterparts, but features that rely on context may require workarounds if they differ.)

The `scripts` in the root `package.json` are set up so that when you run `npm install` in it, it also runs `npm intall` in both `src/legacy` and `src/modern` folders.
The `scripts` in the root `package.json` are set up so that when you run `npm install` in it, it also runs `npm install` in both `src/legacy` and `src/modern` folders.

**Note:** This demo is set up to use a few third-party dependencies (React Router and Redux). These are not essential, and you can remove them from the demo. They are included so we can show how to make them work with this approach.

Expand Down

0 comments on commit 502bca5

Please sign in to comment.