From af75d47594d260d5aefbe4f441b6b5d85119bcaa Mon Sep 17 00:00:00 2001 From: Rajiv Ranjan Singh <42106787+iamrajiv@users.noreply.github.com> Date: Thu, 14 Feb 2019 09:18:33 +0530 Subject: [PATCH] Fixed Typographical Error in guide/english/react/index.md (#35187) * Update index.md * Update index.md --- guide/english/react/index.md | 68 ++++++++++++++++++------------------ 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/guide/english/react/index.md b/guide/english/react/index.md index 3dda5a4322..45ce0f70d9 100644 --- a/guide/english/react/index.md +++ b/guide/english/react/index.md @@ -45,8 +45,8 @@ ReactDOM.render( ); ``` -2. React is declarative. For the most part, we are concerned more with *What to do* rather than *How to do* a specific task. Declarative programming is a programming paradigm that expresses the logic of a computation without describing its control flow. -Declarative programming comes with advantages, such as reduced side effects (occurs when we modify any state, mutating something or making an API request), minimizing mutability (mostly abstracted), enhanced readability and less bugs. +2. React is declarative, which means you are concerned more with **what** to do rather than **how** to do a specific task. Declarative programming is a programming paradigm that expresses the logic of a computation without describing its control flow. +Declarative programming comes with certain advantages such as reduced side effects that occur when you modify any state, mutate something, or make an API request. Other advantages are minimizing mutability (mostly abstracted), enhanced readability, and fewer bugs. 3. Unidirectional dataflow. UI in React is actually the function of the state, which means that as the state updates, it updates the UI as well. So our UI progresses as the state changes. @@ -78,7 +78,7 @@ React will then instruct the browser to update only the computed diff and not th Would you like to get started learning the basics of React without getting bogged down creating a development environment? Chances are that if you are new to web development, just setting up a development environment can leave you feeling a little intimidated. -In this article we are going to look at how we can get started with React using only a text editor and a browser and nothing else. +In this article, you will start learning React using only a text editor and a browser. Watch Video Here @@ -86,7 +86,7 @@ In this article we are going to look at how we can get started with React using ### 1 — Set Up Boiler Plate Code with Emmet -Let’s get started with step 1. We’ll begin with a file in our browser called “index.html”. We’ll begin with the boiler plate HTML code. For a quick start I recommend using Emmet with whatever text editor you have, and on the first line typing in `html:5` then pressing the shift key to get the code below. Or you can go ahead and copy and paste the code from below. +Let’s get started with step 1. You’ll begin with a file in our browser called “index.html”. You’ll begin with the boilerplate HTML code. For a quick start I recommend using Emmet with whatever text editor you have, and on the first line typing in `html:5` then pressing the shift key to get the code below. Or you can go ahead and copy and paste the code from below. ```javascript html:5 @@ -109,14 +109,14 @@ This will result in the following code: ``` -We can fill in the title as “Time to React!”. +You can fill in the title as “Time to React!”. -This content will not appear in your webpage. Anything in the head section of the HTML file will be metadata that our browser will user to interpret our code in the body section. This title is going to be what appears on the tab for our page, not actually on the page. +This content will not appear on your webpage. Anything in the head section of the HTML file will be metadata that our browser will use to interpret the code in the body section. This title is going to be what appears on the tab for your page, not actually on the page. ### 2 - Get Script Tags to Harness the Power of React and Babel Libraries -Ok, item one is checked off our list. Let’s look at item two. We are going to set up our developer environment by using script tags to bring in React and Babel. This is not a real life developer environment. That would be quite an elaborate setup. It would also leave us with a lot of boiler plate code and libraries that would take us off subject of learning React basics. The goal of this series is to go over the basic syntax of React and get right into coding. -We are going to use `