From f9a27cb317478abeeef093da1403d0cff67da0f5 Mon Sep 17 00:00:00 2001 From: Rick Beerendonk Date: Sat, 31 Jan 2015 20:59:18 +0100 Subject: [PATCH] Documents that JSX tool is transforming files with .js extension (and not .jsx) by default --- docs/09-tooling-integration.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/09-tooling-integration.md b/docs/09-tooling-integration.md index 1814bc2e..02dfd0c2 100644 --- a/docs/09-tooling-integration.md +++ b/docs/09-tooling-integration.md @@ -32,7 +32,11 @@ If you like using JSX, we provide an in-browser JSX transformer for development ### Productionizing: Precompiled JSX -If you have [npm](http://npmjs.org/), you can simply run `npm install -g react-tools` to install our command-line `jsx` tool. This tool will translate files that use JSX syntax to plain JavaScript files that can run directly in the browser. It will also watch directories for you and automatically transform files when they are changed; for example: `jsx --watch src/ build/`. Run `jsx --help` for more information on how to use this tool. +If you have [npm](http://npmjs.org/), you can simply run `npm install -g react-tools` to install our command-line `jsx` tool. This tool will translate files that use JSX syntax to plain JavaScript files that can run directly in the browser. It will also watch directories for you and automatically transform files when they are changed; for example: `jsx --watch src/ build/`. + +By default JSX files with a `.js` extension are transformed. Use `jsx --extension jsx src/ build/` to transform files with a `.jsx` extension. + +Run `jsx --help` for more information on how to use this tool. ### Helpful Open-Source Projects