mirror of
https://github.com/bobwen-dev/react-templates
synced 2025-04-12 00:56:39 +02:00
basic support for react 15 (#128)
This commit is contained in:
parent
c495a02452
commit
68b088fe2e
@ -9,6 +9,8 @@ const svg = ['a', 'altGlyph', 'altGlyphDef', 'altGlyphItem', 'animate', 'animate
|
||||
const v12_svg = ver0_12_0.concat(svg);
|
||||
|
||||
const versions = {
|
||||
'15.0.1': v12_svg,
|
||||
'15.0.0': v12_svg,
|
||||
'0.14.0': v12_svg,
|
||||
'0.13.1': v12_svg,
|
||||
'0.12.2': v12_svg,
|
||||
|
@ -91,7 +91,7 @@ function reactImport(options) {
|
||||
if (options.native) {
|
||||
return 'react-native';
|
||||
}
|
||||
if (options.targetVersion === '0.14.0' || options.targetVersion === '0.15.0') {
|
||||
if (options.targetVersion === '0.14.0' || options.targetVersion === '0.15.0' || options.targetVersion === '15.0.0' || options.targetVersion === '15.0.1') {
|
||||
return 'react';
|
||||
}
|
||||
return 'react/addons';
|
||||
|
Loading…
x
Reference in New Issue
Block a user