Skip to content

Commit 779a183

Browse files
committed
JSX automatic mode as default
1 parent a10e02b commit 779a183

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

docs/JSXV4.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Another example is a V4 project that also uses `"rescript-react-native", "rescri
4343
4444
### Classic and Automatic Mode
4545

46-
Classic mode is the default and generates calls to `React.createElement` just as with V3.
46+
Classic mode generates calls to `React.createElement` just as with V3.
4747

4848
```json
4949
"jsx": {
@@ -52,7 +52,7 @@ Classic mode is the default and generates calls to `React.createElement` just as
5252
}
5353
```
5454

55-
Automatic mode is an experimental mode that generate calls to `_jsx` functions (similar to TypeScript's `react-jsx` mode)
55+
Automatic mode is the default and generates calls to `_jsx` functions (similar to TypeScript's `react-jsx` mode)
5656

5757
```json
5858
"jsx": {

jscomp/common/js_config.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ let force_cmi = ref false
5151
let force_cmj = ref false
5252
let jsx_version = ref None
5353
let jsx_module = ref React
54-
let jsx_mode = ref Classic
54+
let jsx_mode = ref Automatic
5555
let js_stdout = ref true
5656
let all_module_aliases = ref false
5757
let no_stdlib = ref false

jscomp/others/belt_HashSetInt.resi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
2424

2525
/***
26-
This module is [`Belt.HashSet`]() specialized with key type to be a primitive type.
26+
This module is [`Belt.HashSet`]() specialized with key type to be a primitive type.
2727

28-
It is more efficient in general, the API is the same with [`Belt.HashSet`]() except its key type is fixed,
29-
and identity is not needed(using the built-in one)
28+
It is more efficient in general, the API is the same with [`Belt.HashSet`]() except its key type is fixed,
29+
and identity is not needed(using the built-in one)
3030

31-
**See** [`Belt.HashSet`]()
31+
**See** [`Belt.HashSet`]()
3232
*/
3333

3434
type key = int

jscomp/others/belt_HashSetString.resi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
2424

2525
/***
26-
This module is [`Belt.HashSet`]() specialized with key type to be a primitive type.
26+
This module is [`Belt.HashSet`]() specialized with key type to be a primitive type.
2727

28-
It is more efficient in general, the API is the same with [`Belt.HashSet`]() except its key type is fixed,
29-
and identity is not needed(using the built-in one)
28+
It is more efficient in general, the API is the same with [`Belt.HashSet`]() except its key type is fixed,
29+
and identity is not needed(using the built-in one)
3030

31-
**See** [`Belt.HashSet`]()
31+
**See** [`Belt.HashSet`]()
3232
*/
3333

3434
type key = string

jscomp/syntax/cli/res_cli.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ end = struct
177177
let interface = ref false
178178
let jsxVersion = ref (-1)
179179
let jsxModule = ref "react"
180-
let jsxMode = ref "classic"
180+
let jsxMode = ref "automatic"
181181
let file = ref ""
182182
let typechecker = ref false
183183

@@ -215,7 +215,7 @@ end = struct
215215
"Specify the jsx module. Default: react" );
216216
( "-jsx-mode",
217217
Arg.String (fun txt -> jsxMode := txt),
218-
"Specify the jsx mode, classic or automatic. Default: classic" );
218+
"Specify the jsx mode, classic or automatic. Default: automatic" );
219219
( "-typechecker",
220220
Arg.Unit (fun () -> typechecker := true),
221221
"Parses the ast as it would be passed to the typechecker and not the \

0 commit comments

Comments
 (0)