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.
This commit is contained in:
Nathan Hunzaker
2017-10-12 17:30:03 -04:00
committed by GitHub
parent 8ac9600574
commit 19043236be
+3 -1
View File
@@ -42,7 +42,9 @@ export default function loadReact() {
let version = query.version || 'local';
if (version !== 'local') {
if (parseInt(version, 10) >= 16) {
// The file structure was updated in 16. This wasn't the case for alphas.
// Load the old module location for anything less than 16 RC
if (parseInt(version, 10) >= 16 && version.indexOf('alpha') < 0) {
REACT_PATH =
'https://unpkg.com/react@' + version + '/umd/react.development.js';
DOM_PATH =