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.
AoDev committed
Mar 16, 2015 at 23:59 UTC
83a2465af9a95db9ffa3369e4c8e2b1db28a3bcb
1 file changed
+2
docs/docs/tutorial.md
+2
@@ -87,6 +87,8 @@ React.render(
87
);
88
```
89
90
+Note that native HTML element names start with a lowercase letter, while custom React classes names begin with an uppercase letter.
91
+
92
#### JSX Syntax
93
94
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: