From aeb374838c22c507d54003a596cbeb26751d85da Mon Sep 17 00:00:00 2001 From: Daniel Schep Date: Thu, 12 Jan 2017 11:47:05 -0500 Subject: [PATCH 1/2] Document Flow support Projects created by Create React App use the `babel-preset-react` which includes Flow babel plugins which introduces new syntax. This is important for users to know as it causes what used to be syntax errors to be silently suppressed because they're valid type annotations in Flow. For example if a user accidentally has `[foo: 'bar']`, Babel will silently convert it to `[foo]`. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e9f8c1b6074..f1d9726b641 100644 --- a/README.md +++ b/README.md @@ -144,7 +144,7 @@ Please refer to the [User Guide](https://github.com/facebookincubator/create-rea **If you’re getting started** with React, use `create-react-app` to automate the build of your app. There is no configuration file, and `react-scripts` is the only extra build dependency in your `package.json`. Your environment will have everything you need to build a modern React app: -* React, JSX, and ES6 support. +* React, JSX, ES6, and Flow support. * Language extras beyond ES6 like the object spread operator. * A dev server that lints for common errors. * Import CSS and image files directly from JavaScript. From 1bf71dd8a3df8a8524c4531612d7f9af21bc50c9 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Thu, 12 Jan 2017 18:30:20 +0000 Subject: [PATCH 2/2] Make it a bit clearer --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f1d9726b641..2c387f6cf53 100644 --- a/README.md +++ b/README.md @@ -144,7 +144,7 @@ Please refer to the [User Guide](https://github.com/facebookincubator/create-rea **If you’re getting started** with React, use `create-react-app` to automate the build of your app. There is no configuration file, and `react-scripts` is the only extra build dependency in your `package.json`. Your environment will have everything you need to build a modern React app: -* React, JSX, ES6, and Flow support. +* React, JSX, ES6, and Flow syntax support. * Language extras beyond ES6 like the object spread operator. * A dev server that lints for common errors. * Import CSS and image files directly from JavaScript.