mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +00:00
Merge pull request #3429 from AoDev/patch-1
Add a note about react classe name convention
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user