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: "The following tsconfig.json file is used".
A block of code is set as follows:
{
"compilerOptions": {
"target": "ES2015",
"module": "commonjs",
"sourceMap": true,
"outDir": "./script",
}
}
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
{
"compilerOptions": {
"target": "ES2015",
"module": "commonjs",
"sourceMap": true,
"outDir": "./script",
}
}
Any command-line input or output is written as follows:
npx create-react-app chapter03 --scripts-version=react-scripts-ts
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: "Typically, Angular is used to create Single-Page Applications (SPAs), whereby small sections of the client are updated rather than having to reload the whole page when a navigation event happens."