You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -90,7 +90,7 @@ Even if you haven't used Flux or Elm, Redux only takes a few minutes to get star
90
90
91
91
To install the stable version:
92
92
93
-
```
93
+
```sh
94
94
npm install --save redux
95
95
```
96
96
@@ -108,7 +108,7 @@ The Redux source code is written in ES2015 but we precompile both CommonJS and U
108
108
109
109
Most likely, you'll also need [the React bindings](https://github.com/reduxjs/react-redux) and [the developer tools](https://github.com/reduxjs/redux-devtools).
Copy file name to clipboardExpand all lines: docs/recipes/ServerRendering.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ In the following recipe, we are going to look at how to set up server-side rende
26
26
27
27
For this example, we'll be using [Express](http://expressjs.com/) as a simple web server. We also need to install the React bindings for Redux, since they are not included in Redux by default.
Copy file name to clipboardExpand all lines: docs/recipes/WritingTests.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -7,13 +7,13 @@ Because most of the Redux code you write are functions, and many of them are pur
7
7
We recommend [Jest](http://facebook.github.io/jest/) as the testing engine.
8
8
Note that it runs in a Node environment, so you won't have access to the DOM.
9
9
10
-
```
10
+
```sh
11
11
npm install --save-dev jest
12
12
```
13
13
14
14
To use it together with [Babel](http://babeljs.io), you will need to install `babel-jest`:
15
15
16
-
```
16
+
```sh
17
17
npm install --save-dev babel-jest
18
18
```
19
19
@@ -254,13 +254,13 @@ A nice thing about React components is that they are usually small and only rely
254
254
255
255
First, we will install [Enzyme](http://airbnb.io/enzyme/). Enzyme uses the [React Test Utilities](https://facebook.github.io/react/docs/test-utils.html) underneath, but is more convenient, readable, and powerful.
256
256
257
-
```
257
+
```sh
258
258
npm install --save-dev enzyme
259
259
```
260
260
261
261
We will also need to install Enzyme adapter for our version of React. Enzyme has adapters that provide compatibility with `React 16.x`, `React 15.x`, `React 0.14.x` and `React 0.13.x`. If you are using React 16 you can run:
0 commit comments