Skip to content

Commit 517e96e

Browse files
committed
Update default config file to mention ES6 transformations are turned on by default, and added a comment about Flow.
1 parent c99536b commit 517e96e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/React.Web/Content/App_Start/ReactConfig.cs.pp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@
88
{
99
public static void Configure()
1010
{
11-
// If you want to use fancy new ES6 features, uncomment this line:
11+
// ES6 features are enabled by default. Uncomment the below line to disable them.
1212
// See http://reactjs.net/guides/es6.html for more information.
13-
//ReactSiteConfiguration.Configuration.SetUseHarmony(true);
13+
//ReactSiteConfiguration.Configuration.SetUseHarmony(false);
14+
15+
// Uncomment the below line if you are using Flow
16+
// See http://reactjs.net/guides/flow.html for more information.
17+
//ReactSiteConfiguration.Configuration.SetStripTypes(true);
1418

1519
// If you want to use server-side rendering of React components,
1620
// add all the necessary JavaScript files here. This includes

0 commit comments

Comments
 (0)