Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Commit bb69c79

Browse files
committed
Add deprecation warning to bundled react sources
1 parent 33f4dc8 commit bb69c79

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

lib/sources/react-latest.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
console.error("Warning: loading `react-latest` directly is deprecated. Replace the requires with `react/source`.");
2+
13
/**
24
* React (with addons) v15.0.1
35
*/

lib/sources/react-v13.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
console.error("Warning: loading `react-v13` directly is deprecated. ")
2+
console.error("Replace the requires with `react/source` and add `gem 'react-rails', '~> 1.3.3'` to your Gemfile.");
3+
14
/**
25
* React (with addons) v0.13.3
36
*/

lib/sources/react-v14.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
console.error("Warning: loading `react-v14` directly is deprecated. ")
2+
console.error("Replace the requires with `react/source` and add `gem 'react-rails', '~> 1.6.2'` to your Gemfile.");
3+
14
/**
25
* React (with addons) v0.14.8
36
*/

lib/sources/react-v15.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
console.error("Warning: loading `react-v15` directly is deprecated. ")
2+
console.error("Replace the requires with `react/source` and add `gem 'react-rails', '~> 1.9.0'` to your Gemfile.");
3+
14
/**
25
* React (with addons) v15.0.1
36
*/

0 commit comments

Comments
 (0)