@samitouri / QOS-React-2 / commits / 19043236be

Add exception for 16.alpha when loading React in DOM Fixtures (#11200)

The file structure was updated in 16. This wasn't the case for alphas. We need to load the old module location for anything less than 16 RC.

Nathan Hunzaker committed Oct 12, 2017 at 17:30 UTC 19043236be9aeab8298eba1dc2e6bd4703ffff51
1 file changed +3 -1
fixtures/dom/src/react-loader.js
+3 -1
@@ -42,7 +42,9 @@ export default function loadReact() {
42 let version = query.version || 'local';
43
44 if (version !== 'local') {
45 - if (parseInt(version, 10) >= 16) {
45 + // The file structure was updated in 16. This wasn't the case for alphas.
46 + // Load the old module location for anything less than 16 RC
47 + if (parseInt(version, 10) >= 16 && version.indexOf('alpha') < 0) {
48 REACT_PATH =
49 'https://unpkg.com/react@' + version + '/umd/react.development.js';
50 DOM_PATH =