From 8b1c33e7042c94c9b4feed62dea4b3b7cc9c51ec Mon Sep 17 00:00:00 2001 From: Faraj Daoud Date: Sun, 14 Oct 2018 12:31:55 -0400 Subject: [PATCH] Changed wording in ## React - Components section (#18539) Worked on explaining the example code more thoroughly. --- client/src/pages/guide/english/react/component/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/pages/guide/english/react/component/index.md b/client/src/pages/guide/english/react/component/index.md index a40b967eb4..fd58a3517c 100644 --- a/client/src/pages/guide/english/react/component/index.md +++ b/client/src/pages/guide/english/react/component/index.md @@ -19,7 +19,7 @@ ReactDOM.render( ``` -```name="Faisal Arkan"``` will give value into ```{props.name}``` from ```function Welcome(props)``` and returning component that has given value by ```name="Faisal Arkan"```, After that react will render element into html. +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. ### Other ways to declare components