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.
This commit is contained in:
AoDev
2015-03-16 23:59:02 +01:00
parent d6cc34e4bf
commit ce206adc87

View File

@@ -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: