From ce206adc87ff4702fb58e2b65d9a4069b6ea6ccc Mon Sep 17 00:00:00 2001 From: AoDev Date: Mon, 16 Mar 2015 23:59:02 +0100 Subject: [PATCH] Add a note about react classe name convention I lost quite some time trying to figure out what was happening. No error in console and nothing showing up. --- docs/tutorial.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/tutorial.md b/docs/tutorial.md index 9c1b2995..ae6733b7 100644 --- a/docs/tutorial.md +++ b/docs/tutorial.md @@ -87,6 +87,8 @@ React.render( ); ``` +Note that native HTML element names start with a lowercase letter, while custom React classes names begin with an uppercase letter. + #### JSX Syntax The first thing you'll notice is the XML-ish syntax in your JavaScript. We have a simple precompiler that translates the syntactic sugar to this plain JavaScript: