Skip to content

Commit 40f2565

Browse files
mohsinulhaqljharb
authored andcommitted
[Docs] update README to document React version detection
1 parent dd0757f commit 40f2565

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ You should also specify settings that will be shared across all the plugin rules
3939
"createClass": "createReactClass", // Regex for Component Factory to use,
4040
// default to "createReactClass"
4141
"pragma": "React", // Pragma to use, default to "React"
42-
"version": "15.0", // React version, default to the latest React stable release
42+
"version": "detect", // React version. "detect" automatically picks the version you have installed.
43+
// You can also use `16.0`, `16.3`, etc, if you want to override the detected value.
4344
"flowVersion": "0.53" // Flow version
4445
},
4546
"propWrapperFunctions": [

0 commit comments

Comments
 (0)