From c68b9726188b1565f109a47e4ec6fe3571c35ecd Mon Sep 17 00:00:00 2001 From: Cheng Lou Date: Sat, 28 Dec 2013 22:52:35 -0500 Subject: [PATCH] docs add warning to add jsx pragma --- docs/docs/02.1-jsx-in-depth.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/docs/02.1-jsx-in-depth.md b/docs/docs/02.1-jsx-in-depth.md index b811c2a09114a..e4f3a29e7ec5c 100644 --- a/docs/docs/02.1-jsx-in-depth.md +++ b/docs/docs/02.1-jsx-in-depth.md @@ -10,6 +10,11 @@ next: jsx-gotchas.html JSX is a JavaScript XML syntax transform recommended for use with React. +> Note: +> +> Don't forget the `/** @jsx React.DOM */` pragma at the beginning of your file! This tells JSX to process the file for React. +> +> If you don't include the pragma, your source will remain untouched, so it's safe to run the JSX transformer on all JS files in your codebase if you want to. ## Why JSX?