React is a JavaScript library, and so it assumes you have a basic understanding of the JavaScript language. If you don't feel very confident, we recommend refreshing your JavaScript knowledge so you can follow along more easily.
React 是一個(gè)JavaScript庫(kù)权薯,所以我們假設(shè)你有對(duì)JavaScript語(yǔ)言有一個(gè)基本的了解制轰。如果你感覺(jué)不是很有信心湿诊,我們建議更新JavaScript知識(shí),那樣能學(xué)的更簡(jiǎn)單。
We also use some of the ES6 syntax in the examples. We 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 Babel REPL to check what ES6 code compiles to.
我們同樣在事例中使用了ES6語(yǔ)法酝枢。我們會(huì)盡量謹(jǐn)慎使用它,畢竟ES6相對(duì)來(lái)說(shuō)還是很新的。但是我們鼓勵(lì)你熟悉箭頭函數(shù)污筷,類(lèi),模板字面量乍赫,let和const的語(yǔ)句瓣蛀。你可以使用Babel REPL檢驗(yàn)ES6代碼都編譯成什么了。