From 2c88f89ec4d5348f4b94592e57fc58d63dfc1d30 Mon Sep 17 00:00:00 2001 From: David Nguyen Date: Tue, 19 Dec 2017 23:37:55 +0700 Subject: [PATCH 1/5] added note about version between react-test-render using with react & react-dom --- content/docs/reference-test-renderer.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content/docs/reference-test-renderer.md b/content/docs/reference-test-renderer.md index a3485e9c..b8a6b523 100644 --- a/content/docs/reference-test-renderer.md +++ b/content/docs/reference-test-renderer.md @@ -19,6 +19,8 @@ This package provides a React renderer that can be used to render React componen Essentially, this package makes it easy to grab a snapshot of the platform view hierarchy (similar to a DOM tree) rendered by a React DOM or React Native component without using a browser or [jsdom](https://github.com/tmpvar/jsdom). +**Note:** make sure `react-test-renderer` version is the same with `react`, `react-dom` version. + Example: ```javascript From 5241518be8449a1380e743cdc39a4f679dc72a15 Mon Sep 17 00:00:00 2001 From: Dzung Nguyen Date: Fri, 22 Dec 2017 08:03:08 +0700 Subject: [PATCH 2/5] update styles & wording --- content/docs/reference-test-renderer.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content/docs/reference-test-renderer.md b/content/docs/reference-test-renderer.md index b8a6b523..94a2bb35 100644 --- a/content/docs/reference-test-renderer.md +++ b/content/docs/reference-test-renderer.md @@ -19,7 +19,9 @@ This package provides a React renderer that can be used to render React componen Essentially, this package makes it easy to grab a snapshot of the platform view hierarchy (similar to a DOM tree) rendered by a React DOM or React Native component without using a browser or [jsdom](https://github.com/tmpvar/jsdom). -**Note:** make sure `react-test-renderer` version is the same with `react`, `react-dom` version. +> Note: +> +> To prevent potential incompatibilities, all `react` packages should use the same version (eg `react@16.2.0`, `react-dom@16.2.0`, `react-test-renderer@16.2.0`). Example: From 9f08b3359687ecb48a0e4f202607b02a9e68117e Mon Sep 17 00:00:00 2001 From: Dzung Nguyen Date: Sat, 23 Dec 2017 15:10:21 +0700 Subject: [PATCH 3/5] added incompatibilities note to installation.md --- content/docs/installation.md | 4 ++++ content/docs/reference-test-renderer.md | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/content/docs/installation.md b/content/docs/installation.md index 77844cfd..702bf9bf 100644 --- a/content/docs/installation.md +++ b/content/docs/installation.md @@ -89,6 +89,10 @@ npm install --save react react-dom Both Yarn and npm download packages from the [npm registry](http://npmjs.com/). +> Note: +> +> To prevent potential incompatibilities, all `react` packages should use the same version (eg `react@16.2.0`, `react-dom@16.2.0`, `react-test-renderer@16.2.0`). + ### Enabling ES6 and JSX We recommend using React with [Babel](http://babeljs.io/) to let you use ES6 and JSX in your JavaScript code. ES6 is a set of modern JavaScript features that make development easier, and JSX is an extension to the JavaScript language that works nicely with React. diff --git a/content/docs/reference-test-renderer.md b/content/docs/reference-test-renderer.md index 94a2bb35..a3485e9c 100644 --- a/content/docs/reference-test-renderer.md +++ b/content/docs/reference-test-renderer.md @@ -19,10 +19,6 @@ This package provides a React renderer that can be used to render React componen Essentially, this package makes it easy to grab a snapshot of the platform view hierarchy (similar to a DOM tree) rendered by a React DOM or React Native component without using a browser or [jsdom](https://github.com/tmpvar/jsdom). -> Note: -> -> To prevent potential incompatibilities, all `react` packages should use the same version (eg `react@16.2.0`, `react-dom@16.2.0`, `react-test-renderer@16.2.0`). - Example: ```javascript From 6e7c3ca53f24b4b712466541f0738568ccc65df5 Mon Sep 17 00:00:00 2001 From: Dzung Nguyen Date: Wed, 3 Jan 2018 06:40:25 +0700 Subject: [PATCH 4/5] update words for react packages version --- content/docs/installation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/installation.md b/content/docs/installation.md index 702bf9bf..c542785c 100644 --- a/content/docs/installation.md +++ b/content/docs/installation.md @@ -91,7 +91,7 @@ Both Yarn and npm download packages from the [npm registry](http://npmjs.com/). > Note: > -> To prevent potential incompatibilities, all `react` packages should use the same version (eg `react@16.2.0`, `react-dom@16.2.0`, `react-test-renderer@16.2.0`). +> To prevent potential incompatibilities, all react packages should use the same version. (This includes react, react-dom, react-test-renderer, etc.) ### Enabling ES6 and JSX From c07c8be5064265713f782e46e343cc173b74372e Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Tue, 9 Jan 2018 11:29:48 -0800 Subject: [PATCH 5/5] Formatting nit --- content/docs/add-react-to-an-existing-app.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/add-react-to-an-existing-app.md b/content/docs/add-react-to-an-existing-app.md index 0331d58d..9c584d2b 100644 --- a/content/docs/add-react-to-an-existing-app.md +++ b/content/docs/add-react-to-an-existing-app.md @@ -42,7 +42,7 @@ Both Yarn and npm download packages from the [npm registry](http://npmjs.com/). > Note: > -> To prevent potential incompatibilities, all react packages should use the same version. (This includes react, react-dom, react-test-renderer, etc.) +> To prevent potential incompatibilities, all react packages should use the same version. (This includes `react`, `react-dom`, `react-test-renderer`, etc.) ### Enabling ES6 and JSX