- React Design Patterns and Best Practices(Second Edition)
- Carlos Santana Roldán
- 202字
- 2021-06-24 15:43:34
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 createClass, we 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."
- Web安全防護(hù)指南:基礎(chǔ)篇
- Building E-commerce Sites with VirtueMart Cookbook
- 網(wǎng)絡(luò)故障現(xiàn)場處理實踐(第4版)
- HCNA網(wǎng)絡(luò)技術(shù)
- 網(wǎng)絡(luò)互聯(lián)技術(shù)(實踐篇)
- 射頻通信系統(tǒng)
- 計算機(jī)網(wǎng)絡(luò)與通信(第2版)
- Kong網(wǎng)關(guān):入門、實戰(zhàn)與進(jìn)階
- 基于性能的保障理論與方法
- 互聯(lián)網(wǎng)+思維與創(chuàng)新:通往未來的+號
- 網(wǎng)管第一課:網(wǎng)絡(luò)操作系統(tǒng)與配置管理
- 無線傳感器網(wǎng)絡(luò)定位技術(shù)
- 云計算技術(shù)與標(biāo)準(zhǔn)化
- 精通SEO:100%網(wǎng)站流量提升密碼
- 商業(yè)的本質(zhì)和互聯(lián)網(wǎng)