Files
react.dev/content/docs/hello-world.md
Jenny Wong 941c1a4efc NOtes and ideas for hello-world.md file.
- you can _just_ open it in 
- It _renders_ a heading saying “Hello, world!” on the page.  - you are using the same  word as the thing you are describing. 
- “A Note on JavaScript”  the title doe snot suggest that you need to read it because you are learning about react ,not JS.  Something like  “React & JavaScript” or something like “Knowledge Level Assumptions”
- “we recommend **refreshing** your JavaScript knowledge so you can follow along more easily.” — refreshing suggest that someone. Already knows JS, so if they don’t know JS they will feel dejected. Try “We highly recommend [going through a Javascript tutorial]() to check your knowledge level.”
- “We also use some of the ES6 syntax”  - **We**  that suggests its a  us vs  the user.  Instead go for “**The documentation** will use some [ES6 Syntax](LINK TO WHAT IS ES6)”
2018-06-10 22:53:22 +01:00

2.2 KiB

id, title, permalink, prev, next, redirect_from
id title permalink prev next redirect_from
hello-world Hello World docs/hello-world.html cdn-links.html introducing-jsx.html
docs/
docs/index.html
docs/getting-started.html
docs/getting-started-ko-KR.html
docs/getting-started-zh-CN.html

The easiest way to get started with React is to use this Hello World example code on CodePen. You don't need to install anything; you can open it in another tab and follow along as we go through examples. If you'd rather use a local development environment, check out the Installation section.

The smallest React example looks like this:

ReactDOM.render(
  <h1>Hello, world!</h1>,
  document.getElementById('root')
);

It displays a heading saying "Hello, world!" on the page.

The next few sections will gradually introduce you to using React. We will examine the building blocks of React apps: elements and components. Once you master them, you can create complex apps from small reusable pieces.

Knowledge Level Assumptions

React is a JavaScript library, and so we'll assume you have a basic understanding of the JavaScript language. If you don't feel very confident, we recommend going through a Javascript tutorial to check your knowledge level and enable you to follow along this tutorial more easily.

The tutorial also includes some of the ES6 syntax in the examples. We have try to use it sparingly because it's still relatively new, but we encourage you to get familiar with arrow functions, classes, template literals, let, and const statements. You can use the Babel REPL to check what ES6 code compiles to.