Skip to content

Commit 35b5bcf

Browse files
authored
Create the Redux Essentials page, take 2 (reduxjs#3740)
* Port admonition and code block CSS from RTK site * Restructure sidebars to add "Tutorials" section * Add empty "Quick Start" tutorial page * Bump Docusaurus to alpha.48 * Fix text color in admonitions * Add blockquote styling for other pages * Add DetailedExplanation component * Initial Quick Start intro content * Quick Start: add "What is Redux" and "Terms" sections * Quick Start: add "play with app" content * Quick Start: create nested folder and rename file * Store setup * Quick Start: add slice, reducer, immutability, and thunk sections * Quick start: Add React-Redux section * Quick start: emphasize immutability, highlight JSX * Tweak "know more?" and explanation styles * Fix typo and add thunk usage mention * Bump Docusaurus to alpha.50 * Temporarily rename files to .md to work around DS bug See facebook/docusaurus#2551 * Add border color for highlight lines * Add code block titles and test line highlights * Initial project setup section * Add reducer and data flow explanations * Tweak wording * Link example repo and sandbox * Update Docusaurus * Fill out "Basic Data Flow" page * Add additional phrasing * Add intro and summary content for part 3 * Shrink code block file header padding * Finish writing Part 3 * Link to Immer docs * Add initial Part 4 content * Finish Quick Start part 4 * Remove unnecessary uses of "just" * Add Part 5 outline * Update page titles * Half of part 5 * Finish Quick Start content. Yay!!!!!! * Clean up tutorial part 1 based on review feedback - Reworded several explanations - Added "Immutability" section under "concepts" - Added data flow diagram - Removed leftover example code block * Add "What You've Learned" to part 1 * Rename part 5 -> 6 * Rename part 4 -> 5 * Rename part 3 -> 4 * Rename part 2 -> 3 * Add new Part 2 * Fix up TODO comments and broken links * Swap to new dataflow diagram * Assorted edits and link fixes * Rename "Quick Start" to "Redux Essentials" * Fix links and rename images * Update example app repo/sandbox links * Clarify random seed behavior * Rework introduction content - Redid "Getting Started" page by moving RTK first and removing most of the external tutorial links, - Added RTK to "Installation" page - Added description and "Best Practices" phrase to style guide - Added external links to prereq concepts - Fixed one-way data flow image - Added "Tutorial" link to header/footer, pointing to Essentials * Remove unwanted colors from pagination buttons * Emphasize recommended tutorial * Clean up README * Fix PR preview redirect * Clarify "smallest amount" wording * Try to fix redirects Former-commit-id: af8c8ea
1 parent fa1ab00 commit 35b5bcf

34 files changed

+141
-162
lines changed

README.md.REMOVED.git-id

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
c6206af164afffc7f7cc75f060a2329fcb8d213c
1+
06c2c8fd1f8d1d3e11232d26f91223eccec1d8f3
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import React from 'react'
2+
3+
export const DetailedExplanation = ({
4+
children,
5+
title = 'Detailed Explanation'
6+
}) => {
7+
return (
8+
<details className="detailed-explanation">
9+
<summary>
10+
<h4>{title}</h4>
11+
</summary>
12+
{children}
13+
</details>
14+
)
15+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
c1009f22843241280a4c6e9a9064536491e11266
1+
73670ac005460e36ca5978f3a82499a22bffc84a

docs/introduction/Installation.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,33 @@ hide_title: true
77

88
# Installation
99

10+
## Redux Toolkit
11+
12+
Redux Toolkit includes the Redux core, as well as other key packages we feel are essential for building Redux applications (such as Redux Thunk and Reselect).
13+
14+
It's available as a package on NPM for use with a module bundler or in a Node application:
15+
16+
```bash
17+
# NPM
18+
npm install @reduxjs/toolkit
19+
20+
# Yarn
21+
yarn add @reduxjs/toolkit
22+
```
23+
24+
It's also available as a UMD build, which can be loaded from [the `dist` folder on unpkg](https://unpkg.com/@reduxjs/toolkit/dist/). The UMD builds make Redux Toolkit available as a `window.RTK` global variable.
25+
26+
## Redux Core
27+
1028
To install the stable version:
1129

1230
```bash
31+
# NPM
1332
npm install redux
14-
```
1533

16-
This assumes you are using [npm](https://www.npmjs.com/) as your package manager.
34+
# Yarn
35+
yarn add redux
36+
```
1737

1838
If you're not, you can [access these files on unpkg](https://unpkg.com/redux/), download them, or point your package manager to them.
1939

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
a0c4ec513de343fe7c98730e3b0fdd21b4b088ef
1+
d626d6f8aad44259d58ad4e5ade603beaa539c1d
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
a4df5f1f297652579e324e960d423e8e9faccb7d
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
4ad20f607ad7d35a63efbfa3bf75682b9f12f83a
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
9e5e5f39071f0105c5fea3cdfe1bde6ced91e665
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
f9216d2a79b0c05ee2ebfecbdcf786c786b680ca
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fd931e4cc77ef0873cf2616f67470c9dc34fb93c

0 commit comments

Comments
 (0)