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

  • Beginning React
  • Andrea Chiarelli
  • 201字
  • 2021-07-23 17:10:28

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: "By wrapping the App component, the BrowserRouter component enriches it with routing capabilities."

A block of code is set as follows:

class Catalog extends React.Component {
constructor() {
super();

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

import { BrowserRouter } from 'react-router-dom'
ReactDOM.render(
<BrowserRouter>
<App />
</BrowserRouter>
, document.getElementById('root'));

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

create-react-app --version

Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "Now we need to create a view to display the Catalog component or the About page."

Activity: These are scenario-based activities that will let you practically apply what you've learned over the course of a complete section. They are typically in the context of a real-world problem or situation.


Warnings or important notes appear like this.
主站蜘蛛池模板: 周至县| 南和县| 临洮县| 故城县| 安新县| 南丰县| 吴桥县| 陇川县| 册亨县| 兰考县| 许昌市| 嵊州市| 肥城市| 东辽县| 敦化市| 长子县| 凤山县| 章丘市| 都匀市| 蚌埠市| 永宁县| 东乌| 平利县| 衡阳县| 双鸭山市| 临洮县| 宣武区| 钟山县| 黄陵县| 昆山市| 正阳县| 龙川县| 兴海县| 静海县| 河间市| 宜春市| 行唐县| 乌鲁木齐县| 徐闻县| 个旧市| 资源县|