diff --git a/guide/english/react/components/index.md b/guide/english/react/components/index.md index e0744af9a3..2b7d7dc5c4 100644 --- a/guide/english/react/components/index.md +++ b/guide/english/react/components/index.md @@ -28,6 +28,9 @@ Second, the Welcome component is called with the value ```name="Faisal Arkan"``` The value `name="Faisal Arkan"` will be assigned to `{props.name}` from `function Welcome(props)` and returns a component `

Hello, Faisal Arkan

` which is saved into the const variable `element`. The component can then be rendered via `ReactDOM.render(element, document.getElementById('root'));`. `document.getElementById('root')` in this case is the target location you would like the `element` component to be rendered. +##### Important note: +User defined components (stateful or stateless) must always start with a capital letter as React considers components starting with lowercase letters as DOM tags. For example, `````` will be considered a user defined component but `````` will be considered DOM tags similar to ```
```, `````` or ```

``` tags. This is explaned in detail [here](https://reactjs.org/docs/jsx-in-depth.html#user-defined-components-must-be-capitalized) + ### Other ways to declare components There are many ways to declare components when using React.js, but there are two kinds of components, ***stateless*** components and ***stateful*** components.