官术网_书友最值得收藏!

Conventions used

There are a number of text conventions used throughout this book.

CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "Again, with createClasswe use a function, while, with the ES6 classes, we set an attribute of the instance."

A block of code is set as follows:

const Button = React.createClass({ 
getInitialState() {
return {
text: 'Click me!'
};
},
render() {
return <button>{this.state.text}</button>;
}
});

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

 React.createElement("img", { 
src: "https://www.dev.education/images/logo.png",
alt: "DEV Education"
});

Any command-line input or output is written as follows:

 npm install -g create-react-app

Bold: Indicates a new term, an important word, or words that you see on screen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "Let's start with a basic example—displaying a form with an input field and a Submit button."

Warnings or important notes appear like this.
Tips and tricks appear like this.
主站蜘蛛池模板: 汕头市| 河曲县| 苍溪县| 离岛区| 天水市| 鄂伦春自治旗| 东莞市| 怀柔区| 怀远县| 泽库县| 治多县| 伊金霍洛旗| 景洪市| 津南区| 红河县| 阿合奇县| 红桥区| 永州市| 蕉岭县| 定安县| 东乡族自治县| 清丰县| 施甸县| 钟山县| 哈尔滨市| 呼伦贝尔市| 吉隆县| 伊宁市| 昆山市| 西平县| 调兵山市| 开平市| 金平| 湛江市| 四平市| 朔州市| 金坛市| 仙游县| 正镶白旗| 乌鲁木齐县| 盐津县|